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 vstinner
Recipients GreenKey, ezio.melotti, ncoghlan, vstinner
Date 2013-11-21.22:07:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385071660.3.0.301785075868.issue19685@psf.upfronthosting.co.za>
In-reply-to
Content
-exec(compile(open(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))
+exec(compile(open(__file__,encoding='utf_8').read().replace('\\r\\n', '\\n'), __file__, 'exec'))

The fix is not correct, the script may use a different encoding.

Replace open() with tokenize.open(), available since Python 3.2.

.replace('\\r\\n', '\\n') is probably useless in Python 3 which uses universal newlines by default.
History
Date User Action Args
2013-11-21 22:07:40vstinnersetrecipients: + vstinner, ncoghlan, ezio.melotti, GreenKey
2013-11-21 22:07:40vstinnersetmessageid: <1385071660.3.0.301785075868.issue19685@psf.upfronthosting.co.za>
2013-11-21 22:07:40vstinnerlinkissue19685 messages
2013-11-21 22:07:40vstinnercreate