-#!/usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# rst — xml-rpc-based ikiwiki plugin to process RST files
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
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)