Sync with master

This commit is contained in:
rocky
2017-10-02 03:12:26 -04:00
parent 1a627ba207
commit 2b0fefb95f
2 changed files with 4 additions and 0 deletions

View File

@@ -885,6 +885,8 @@ class Python3Parser(PythonParser):
return
def reduce_is_invalid(self, rule, ast, tokens, first, last):
if not tokens:
return
lhs = rule[0]
if lhs in ('augassign1', 'augassign2') and ast[0][0] == 'and':
return True