Message201721
If py_compile.compile is used on a file with bad encoding (e.g. Lib/test/bad_coding2.py), the function raises even if doraise=False is passed. I'm attaching a patch that fixes this in 3.3 - I haven't tried on 3.4 yet and the code has changed, so I'm not sure it's problem there.
(Background: During RPM build of Python 3 in Fedora, we use py_compile.compile to make sure all files are properly compiled and have newer timestamps. We use 'find' to get all *.py files under 'python3.3/' and then xargs to pass the files to Python script that compiles them. If one of the files causes py_compile.compile to raise, the rest doesn't get compiled.) |
|
Date |
User |
Action |
Args |
2013-10-30 09:42:07 | bkabrda | set | recipients:
+ bkabrda |
2013-10-30 09:42:07 | bkabrda | set | messageid: <1383126127.06.0.0829407086057.issue19447@psf.upfronthosting.co.za> |
2013-10-30 09:42:06 | bkabrda | link | issue19447 messages |
2013-10-30 09:42:06 | bkabrda | create | |
|