Message286465
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:42 | Mariatta | set | recipients:
+ Mariatta, rhettinger, docs@python, marco.buttu, Jim Fasarakis-Hilliard |
2017-01-30 02:13:42 | Mariatta | set | messageid: <1485742422.17.0.130984260474.issue29381@psf.upfronthosting.co.za> |
2017-01-30 02:13:42 | Mariatta | link | issue29381 messages |
2017-01-30 02:13:39 | Mariatta | create | |
|