Commit 34156cff authored by 郭家华's avatar 郭家华

str(x) --> text(x)

parent 4add4db9
...@@ -881,7 +881,7 @@ class NonTerminal(ParseTreeNode, list): ...@@ -881,7 +881,7 @@ class NonTerminal(ParseTreeNode, list):
return self.name return self.name
def __str__(self): def __str__(self):
return " | ".join([str(x) for x in self]) return " | ".join([text(x) for x in self])
def __unicode__(self): def __unicode__(self):
return self.__str__() return self.__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