This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bkabrda
Recipients bkabrda
Date 2013-10-30.09:42:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1383126127.06.0.0829407086057.issue19447@psf.upfronthosting.co.za>
In-reply-to
Content
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.)
History
Date User Action Args
2013-10-30 09:42:07bkabrdasetrecipients: + bkabrda
2013-10-30 09:42:07bkabrdasetmessageid: <1383126127.06.0.0829407086057.issue19447@psf.upfronthosting.co.za>
2013-10-30 09:42:06bkabrdalinkissue19447 messages
2013-10-30 09:42:06bkabrdacreate