[issue12636] IDLE ignores -*- coding -*- with -r option
ledave123
report at bugs.python.org
Thu Jul 28 10:11:43 CEST 2011
ledave123 <ledave123 at yahoo.fr> added the comment:
The problem can be fixed with tokenize :
I'm sorry I never submitted a path and I have no access to the source tree from here, if someone cares to do it, do not hesitate.
def execfile(self, filename, source=None):
"Execute an existing file"
if source is None:
import tokenize
source = tokenize.open(filename).read()
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12636>
_______________________________________
More information about the Python-bugs-list
mailing list