On 15 Jun 2014 09:37, "Steve Dower" <steve.do...@microsoft.com> wrote: > > I think the point is that the encoding may be embedded in the file as a coding comment and there's no obvious way to deal with that.
Opening source files correctly is the intended use case for tokenize.open(). Cheers, Nick.
_______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com