mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-13 22:18:56 +08:00
fix another keyword problem
This commit is contained in:
1 parent
a9bf06987a
commit
5567a42334
2 files changed
+5
-1
No files matched your search
+2
-1
@@ -659,7 +659,8 @@ class Parser(object):
|
||||
continue
|
||||
elif tok == 'assert':
|
||||
stmt, tok = self._parse_statement()
|
||||
stmt.parent = use_as_parent_scope
|
||||
if stmt is not None:
|
||||
stmt.parent = use_as_parent_scope
|
||||
self._scope.asserts.append(stmt)
|
||||
# default
|
||||
elif token_type in [tokenize.NAME, tokenize.STRING,
|
||||
|
||||
Reference in new issue
Block a user