improve Py2/3 compat
Change-Id: I1dfdcb88a492401851d5157c734cd708496bf004 Reviewed-on: https://forge.frm2.tum.de/review/17734 Tested-by: JenkinsCodeReview <bjoern_pedersen@frm2.tum.de> Reviewed-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de>
This commit is contained in:
@ -36,6 +36,7 @@ text -> string
|
||||
|
||||
further convertions are done by the validator of the datatype....
|
||||
"""
|
||||
from __future__ import print_function
|
||||
|
||||
from collections import OrderedDict
|
||||
|
||||
@ -160,7 +161,7 @@ class Parser(object):
|
||||
return self.parse_string(orgtext)
|
||||
|
||||
def parse(self, orgtext):
|
||||
print "parsing %r" % orgtext
|
||||
print("parsing %r" % orgtext)
|
||||
res, rem = self.parse_sub(orgtext)
|
||||
if rem and rem[0] in u',;':
|
||||
return self.parse_sub(u'[%s]' % orgtext)
|
||||
|
Reference in New Issue
Block a user