This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mariatta
Recipients Jim Fasarakis-Hilliard, Mariatta, docs@python, marco.buttu, rhettinger
Date 2017-01-30.02:13:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
There are certain rules about the encoding declaration line.
It has to be the first line of the source code, or in the case that the file starts with a unix "shebang" line, then the encoding declaration has to be on the second line. In fact, the first or the second lines of the source code has to follow a certain regular expression. This is all described in PEP 263, but we don't have to repeat all of those here. IMO we can just refer the reader to the PEP.

I've prepared a patch that addresses this. Please review, and let me know if you have additional feedback.

Thanks :)
Date User Action Args
2017-01-30 02:13:42Mariattasetrecipients: + Mariatta, rhettinger, docs@python, marco.buttu, Jim Fasarakis-Hilliard
2017-01-30 02:13:42Mariattasetmessageid: <>
2017-01-30 02:13:42Mariattalinkissue29381 messages
2017-01-30 02:13:39Mariattacreate