pyChecker complains at line 774 of tokenizer.py
No module attribute (STARSTAR) found
The section is:
if i < len(nodelist):
# should be DOUBLESTAR or STAR STAR
t = nodelist[i][0]
if t == token.DOUBLESTAR:
node = nodelist[i+1]
elif t == token.STARSTAR:
node = nodelist[i+2]
else:
raise ValueError, "unexpected
token: %s" % t
names.append(node[1])
flags = flags | CO_VARKEYWORDS
I've verified that there is no STARSTAR in token.py.
I'd patch this to be token.STAR, which does exist, but
this module has no self tests or unit tests, so I
wouldn't be able to know if it broke anything.
My wild guess is that the intention is to refer to two
STAR tokens rather than a DOUBLESTAR token (and that is
because the increment is 2 rather than 1), but I think
that evidence is pretty slim.
|