Message203682
-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. |
|
Date |
User |
Action |
Args |
2013-11-21 22:07:40 | vstinner | set | recipients:
+ vstinner, ncoghlan, ezio.melotti, GreenKey |
2013-11-21 22:07:40 | vstinner | set | messageid: <1385071660.3.0.301785075868.issue19685@psf.upfronthosting.co.za> |
2013-11-21 22:07:40 | vstinner | link | issue19685 messages |
2013-11-21 22:07:40 | vstinner | create | |
|