From f76ec55786fbfcab556fe584919d855dba3fe7b5 Mon Sep 17 00:00:00 2001 From: David Halter Date: Fri, 16 Aug 2013 11:04:06 +0430 Subject: [PATCH] fix problems with empty decorators - just '@' and nothing else --- jedi/parsing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jedi/parsing.py b/jedi/parsing.py index bf9f51e4..0ae97ca7 100644 --- a/jedi/parsing.py +++ b/jedi/parsing.py @@ -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':