[issue10342] trace module cannot produce coverage reports for zipped modules
STINNER Victor
report at bugs.python.org
Mon Nov 8 02:47:16 CET 2010
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
+ try:
+ with open(filename, 'rb') as fp:
+ encoding, _ = tokenize.detect_encoding(fp.readline)
+ except IOError:
+ encoding = None
You should use 'utf-8' instead of None (which will fall back to the locale encoding) here.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10342>
_______________________________________
More information about the Python-bugs-list
mailing list