Message207250
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:55 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, lemburg, loewis, terry.reedy, benjamin.peterson, ezio.melotti, Arfrever |
2014-01-03 22:05:54 | serhiy.storchaka | set | messageid: <1388786754.98.0.174385943735.issue18960@psf.upfronthosting.co.za> |
2014-01-03 22:05:54 | serhiy.storchaka | link | issue18960 messages |
2014-01-03 22:05:54 | serhiy.storchaka | create | |
|