[issue19447] py_compile.compile raises if a file has bad encoding

Arfrever Frehtes Taifersar Arahesis report at bugs.python.org
Fri Aug 22 19:35:26 CEST 2014


Arfrever Frehtes Taifersar Arahesis added the comment:

You should use importlib.util.cache_from_source(bad_coding) instead of bad_coding + 'c'.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19447>
_______________________________________


More information about the Python-bugs-list mailing list