[issue32407] lib2to3 doesn't work when zipped

2017-12-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: I tend to get nosied on all 2to3 issues, but I only just started caring about this one. :) Thanks for finding the prior art. -- ___ Python tracker

[issue32407] lib2to3 doesn't work when zipped

2017-12-22 Thread R. David Murray
R. David Murray added the comment: Funny, you are already nosy on that issue. Does this one have a different goal, or did you just forget about that one? -- ___ Python tracker

[issue32407] lib2to3 doesn't work when zipped

2017-12-22 Thread R. David Murray
R. David Murray added the comment: Duplicate of issue 24960. -- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Can't use lib2to3 with embeddable zip file. ___ Python

[issue32407] lib2to3 doesn't work when zipped

2017-12-21 Thread Benjamin Peterson
New submission from Benjamin Peterson : 2to3 pokes around on the file system to find the grammar files it needs in source or pickled form. This makes it not work if lib2to3 is running from a zip file. lib2to3 should use pkgutil.get_data() instead to load grammar files.