mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-04 22:58:47 +08:00
fix problems with empty decorators - just '@' and nothing else
This commit is contained in:
1 parent
e63783f122
commit
f76ec55786
1 file changed
+2
-1
+2
-1
@@ -655,7 +655,8 @@ class Parser(object):
|
||||
# decorator
|
||||
elif tok == '@':
|
||||
stmt, tok = self._parse_statement()
|
||||
self._decorators.append(stmt)
|
||||
if stmt is not None:
|
||||
self._decorators.append(stmt)
|
||||
elif tok == 'pass':
|
||||
continue
|
||||
elif tok == 'assert':
|
||||
|
||||
Reference in new issue
Block a user