Author serhiy.storchaka
Recipients Arfrever, benjamin.peterson, ezio.melotti, lemburg, loewis, serhiy.storchaka, terry.reedy
Date 2014-01-03.22:05:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Here is a patch which fixes this issue (and related issues).

* Encoding declaration now detected in second line only if first line is spaces-only (this is needed for support -x option) or comment-only (needed for she-bang).

* Fixed support for -x option.

* PyTokenizer_FromString() no longer check encoding declaration in second line if it was found in first line.

* Fixed encoding detection in the tokenize module, in IDLE, in 2to3 and in the findnocoding script.
Date User Action Args
2014-01-03 22:05:55serhiy.storchakasetrecipients: + serhiy.storchaka, lemburg, loewis, terry.reedy, benjamin.peterson, ezio.melotti, Arfrever
2014-01-03 22:05:54serhiy.storchakasetmessageid: <>
2014-01-03 22:05:54serhiy.storchakalinkissue18960 messages
2014-01-03 22:05:54serhiy.storchakacreate