From e789e41fde95eedb6699a36f930c43f3efe387df Mon Sep 17 00:00:00 2001 From: David Halter Date: Wed, 19 Dec 2012 21:27:59 +0100 Subject: [PATCH] remove old return statements --- jedi/parsing.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jedi/parsing.py b/jedi/parsing.py index ab93c123..354600ee 100644 --- a/jedi/parsing.py +++ b/jedi/parsing.py @@ -758,14 +758,14 @@ class Statement(Simple): tok_temp, type(tok_temp)) raise else: - if tok in ['return', 'yield'] or level == 0 and \ - tok.endswith('=') and not tok in ['>=', '<=', '==', '!=']: + if level == 0 and tok.endswith('=') \ + and not tok in ['>=', '<=', '==', '!=']: # This means, there is an assignment here. # Add assignments, which can be more than one self._assignment_details.append((tok, top)) # All these calls wouldn't be important if nonlocal would - # exist. -> Initialize the first item again. + # exist. -> Initialize the first items again. top = result = Array(start_pos, Array.NOARRAY, self) level = 0 close_brackets = False