wibiti/uncompyle2 — Issue #15: syntax error in Scanner.py
Author: slylock
Created: 2012-02-22 05:38:52+00:00
State: open

When I build on my Mac using Python 2.6, I get this error:

SyntaxError: ('invalid syntax', ('/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/uncompyle2/Scanner.py', 18, 42, "globals().update({k.replace('+','_'):v for (k,v) in dis.opmap.items()})\n"))

... running uncompyle2 gives a similar error, with the caret under the for:

File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/uncompyle2/Scanner.py", line 18
globals().update({k.replace('+','_'):v for (k,v) in dis.opmap.items()})
^
SyntaxError: invalid syntax