Merge branch 'python-3.3-to-3.5' into python-2.4

This commit is contained in:
rocky
2022-08-23 07:46:48 -04:00
3 changed files with 5 additions and 3 deletions

View File

@@ -1611,8 +1611,6 @@ class Python3Parser(PythonParser):
elif lhs == "kwarg":
arg = tokens[first].attr
return not (isinstance(arg, str) or isinstance(arg, unicode))
elif lhs in ("iflaststmt", "iflaststmtl") and self.version[:2] == (3, 6):
return ifstmt(self, lhs, n, rule, ast, tokens, first, last)
elif rule == ("ifstmt", ("testexpr", "_ifstmts_jump")):
# FIXME: go over what's up with 3.0. Evetually I'd like to remove RETURN_END_IF
if self.version <= (3, 0) or tokens[last] == "RETURN_END_IF":