Commits

Sebastian Wiesner committed feacbf0

Standard future imports

  • Participants
  • Parent commits c73307f

Comments (0)

Files changed (1)

File programoutput/sphinxcontrib/programoutput.py

     .. moduleauthor::  Sebastian Wiesner  <lunaryorn@googlemail.com>
 """
 
-__version__ = '0.5'
+from __future__ import (print_function, division, unicode_literals,
+                        absolute_import)
 
 import sys
 import shlex
 from docutils.parsers.rst.directives import flag, unchanged
 
 
+__version__ = '0.5'
+
+
 class program_output(nodes.Element):
     pass
 
                          '$ %(command)s\n%(output)s', 'env')
     app.add_directive('program-output', ProgramOutputDirective)
     app.add_directive('command-output', ProgramOutputDirective)
-    app.connect('builder-inited', init_cache)
-    app.connect('doctree-read', run_programs)
+    app.connect(b'builder-inited', init_cache)
+    app.connect(b'doctree-read', run_programs)