Commit e2814e57 authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

[Python] Fix (again) generation of the Python 3 doc

parent 749492c2
......@@ -69,10 +69,13 @@ class XmlDocString (object):
if detailled is not None and len(detailled.getchildren()) > 0:
if brief is not None: self._newline ()
self.visit (detailled)
from sys import stdout, stderr
from sys import stdout, stderr, version_info
self.writeErrors(output)
self._clean()
return self._linesep.join(self.lines).encode("utf-8")
if version_info[0] == 2:
return self._linesep.join(self.lines).encode("utf-8")
else:
return self._linesep.join(self.lines)
def visit (self, node):
assert isinstance(node.tag, str)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment