Message207250
| 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 |
<1388786754.98.0.174385943735.issue18960@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|