Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exec used as a method breaks lib2to3 #48

Closed
DRMacIver opened this issue Mar 27, 2015 · 0 comments
Closed

exec used as a method breaks lib2to3 #48

DRMacIver opened this issue Mar 27, 2015 · 0 comments
Labels

Comments

@DRMacIver
Copy link

Formatting the following crashes (under both 2.7.8 and 3.4.2):

methods.exec(sys.modules[name])

The error is:

lib2to3.pgen2.parse.ParseError: bad input: type=1, value='exec', context=('', (1, 8))

Running 2to3 on the same code produces the same parse error, so this is a limitation of the library.

@eliben eliben added the bug label Mar 28, 2015
@eliben eliben closed this as completed in 729279e Mar 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants