X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/792816e01d785e18b5e7a043def48ec57251b45f..0b4981588e6e7e5c49219fa534482f789dc14dad:/plugins/rst diff --git a/plugins/rst b/plugins/rst index 779a87fa3..08eb54f85 100755 --- a/plugins/rst +++ b/plugins/rst @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # rst — xml-rpc-based ikiwiki plugin to process RST files @@ -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)