Some more code quality fixes

This commit is contained in:
Dave Halter committed 2020-04-11 02:23:23 +02:00
1 parent bdd4deedc1
commit 02c3d651bd
11 files changed
+10 -22

No files matched your search

+3 -1
View File
@@ -161,7 +161,9 @@ def unpack_arglist(arglist):
if child == ',':
continue
elif child in ('*', '**'):
yield len(child.value), next(iterator)
c = next(iterator, None)
assert c is not None
yield len(child.value), c
elif child.type == 'argument' and \
child.children[0] in ('*', '**'):
assert len(child.children) == 2