From f17f94e120609ed56d722733b9c001c653693727 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sat, 25 Jul 2020 02:16:02 +0200 Subject: [PATCH] Get rid of the old star checking logic --- parso/python/errors.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/parso/python/errors.py b/parso/python/errors.py index 9216978..9cdc9e0 100644 --- a/parso/python/errors.py +++ b/parso/python/errors.py @@ -861,22 +861,10 @@ class _ArglistRule(SyntaxRule): arg_set = set() kw_only = False kw_unpacking_only = False - is_old_starred = False - # In python 3 this would be a bit easier (stars are part of - # argument), but we have to understand both. for argument in node.children: if argument == ',': continue - if argument in ('*', '**'): - # Python < 3.5 has the order engraved in the grammar - # file. No need to do anything here. - is_old_starred = True - continue - if is_old_starred: - is_old_starred = False - continue - if argument.type == 'argument': first = argument.children[0] if _is_argument_comprehension(argument) and len(node.children) >= 2: