diff options
author | W. Trevor King <wking@tremily.us> | 2012-10-10 08:05:06 -0400 |
---|---|---|
committer | W. Trevor King <wking@tremily.us> | 2012-10-10 08:05:09 -0400 |
commit | 7da92e296bdb70f08d7cdd906ec100297b536ac1 (patch) | |
tree | 68cceea2e34ab71ddb21b23576a66551db38b124 /plugins | |
parent | 7b78a2158034b089155059fde7e1a74a34745323 (diff) | |
download | ikiwiki-7da92e296bdb70f08d7cdd906ec100297b536ac1.tar ikiwiki-7da92e296bdb70f08d7cdd906ec100297b536ac1.tar.gz |
rst: add indexes to format strings
For Python 2.6 compatibility. You're only allowed to omit the
positional argument specifiers in Python 2.7 and later.
Diffstat (limited to 'plugins')
-rwxr-xr-x | plugins/rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/rst b/plugins/rst index 779a87fa3..ba0f543f9 100755 --- a/plugins/rst +++ b/plugins/rst @@ -56,7 +56,7 @@ def rst2html(proxy, *args): try: from docutils.core import publish_parts except ImportError as e: - proxy.error('cannot import docutils.core: {}: {}'.format( + proxy.error('cannot import docutils.core: {0}: {1}'.format( e.__class__.__name__, e)) raise @@ -77,7 +77,7 @@ def getsetup(proxy, *kwargs): return 'plugin', { 'safe' : 1, 'rebuild' : 1, 'section' : 'format' } def debug(s): - _sys.stderr.write(__name__ + ':DEBUG:{}\n'.format(s)) + _sys.stderr.write(__name__ + ':DEBUG:{0}\n'.format(s)) _sys.stderr.flush() proxy = IkiWikiProcedureProxy(__name__, debug_fn=None) |