1
0
forked from VimPlug/jedi

fix another = error and goto error with dicts

This commit is contained in:
David Halter
2012-10-09 07:55:42 +02:00
parent a8371d37be
commit 01da60b594
3 changed files with 7 additions and 7 deletions

View File

@@ -1508,7 +1508,7 @@ class PyFuzzyParser(object):
string += ' '
string += ".".join(n.names)
continue
elif tok.endswith('=') and not tok in ['>=', '<=', '==', '!=']:
elif tok.endswith('=') and tok not in ['>=', '<=', '==', '!=']:
# there has been an assignement -> change vars
if level == 0:
set_vars = used_vars
@@ -1518,10 +1518,7 @@ class PyFuzzyParser(object):
elif tok in closing_brackets:
level -= 1
if set_string is not None:
string = set_string
else:
string += tok
string = set_string if set_string is not None else string + tok
token_type, tok = self.next()
except StopIteration:
# comes from tokenizer