Unverified Commit 7dc6a3a9 authored by Guilhem Saurel's avatar Guilhem Saurel Committed by GitHub
Browse files

Merge pull request #176 from jmirabel/devel

Fix Python 3 doc generation
parents 749492c2 defe7268
Pipeline #11082 passed with stage
in 81 minutes and 14 seconds
......@@ -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
return self._linesep.join(self.lines).encode("utf-8")
if version_info[0] == 2:
return self._linesep.join(self.lines).encode("utf-8")
return self._linesep.join(self.lines)
def visit (self, node):
assert isinstance(node.tag, str)
<?xml version="1.0"?>
<package format="2">
<description>An extension of the Flexible Collision Library.</description>
<!-- The maintainer listed here is for the ROS release to receive emails for the buildfarm.
Please check the repository URL for full list of authors and maintainers. -->
Supports Markdown
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