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 flox
Recipients ezio.melotti, flox, vstinner
Date 2012-06-06.23:11:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1339024292.96.0.455254610546.issue14990@psf.upfronthosting.co.za>
In-reply-to
Content
It should raise a SyntaxError, if coding is 'utf8'.
I don't agree with the last patch proposed.

If the import report a SyntaxError, 'tokenize' should do the same.

$ ./python Lib/test/bad_coding2.py
  File "Lib/test/bad_coding2.py", line 1
SyntaxError: encoding problem: utf-8

and it complies strictly with PEP263.
History
Date User Action Args
2012-06-06 23:11:33floxsetrecipients: + flox, vstinner, ezio.melotti
2012-06-06 23:11:32floxsetmessageid: <1339024292.96.0.455254610546.issue14990@psf.upfronthosting.co.za>
2012-06-06 23:11:30floxlinkissue14990 messages
2012-06-06 23:11:30floxcreate