Replace some isinstance checks in the parser tree with .type checks.

This commit is contained in:
Dave Halter committed 2015-02-09 12:27:29 +01:00
1 parent a9a3387cb0
commit a095f8d9e0
4 files changed
+17 -13

No files matched your search

+1 -1
View File
@@ -212,5 +212,5 @@ class PgenParser(object):
# symbol, children = node
self.stack[-1][2][1].append(newnode)
except IndexError:
# stack is empty, set the rootnode.
# Stack is empty, set the rootnode.
self.rootnode = newnode