Commit 37339136 authored by François Grisez's avatar François Grisez

Makes metadoc.py to support Python 2

parent 583002cf
......@@ -61,7 +61,7 @@ class ChildrenList(list):
return children
class TreeNode:
class TreeNode(object):
def __init__(self):
self.parent = None
......@@ -441,7 +441,7 @@ class Translator:
for para in paragraphs:
if para is not paragraphs[0]:
lines.append('')
lines += para.split(sep='\n')
lines += para.split('\n')
return lines
def _crop_text(self, inputLines, width):
......
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