Fix 3.6 MAKE_FUNCTION for kw params...

and remove duplicated attributies in pattr of MAKE_FUNCITON token.
This commit is contained in:
rocky
2018-03-01 07:14:46 -05:00
parent 257c3ca454
commit f7439f506a
5 changed files with 19 additions and 21 deletions

View File

@@ -354,11 +354,6 @@ class Scanner3(Scanner):
attr = []
for flag in self.MAKE_FUNCTION_FLAGS:
bit = flags & 1
if bit:
if pattr:
pattr += ", " + flag
else:
pattr += flag
attr.append(bit)
flags >>= 1
attr = attr[:4] # remove last value: attr[5] == False