[issue4016] improve linecache: reuse tokenize.detect_encoding() and io.open()
STINNER Victor
report at bugs.python.org
Fri Dec 12 19:44:21 CET 2008
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
It was easy to remove the itertools dependency: only itertools.chain()
was really used and a simple "for ...: yield" is enough to get the
same behaviour (test_tokenize.py runs fine). With the new version of
the patch, the bootstrap works correctly.
Added file: http://bugs.python.org/file12333/linecache_refactor-2.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4016>
_______________________________________
More information about the Python-bugs-list
mailing list