mirror of
https://github.com/davidhalter/jedi.git
synced 2026-09-22 13:23:13 +08:00
Replace some isinstance checks in the parser tree with .type checks.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user