SilentGhost added the comment: While the 'U' mode has been deprecated it doesn't mean that your example doesn't run in 3.5 - it runs just fine and will keep doing so until 4.0
I'm attaching patch that suggests using newline=None (even though it's a default value for open), as that what seems to better correspond to the old 'U' mode. ---------- components: +Extension Modules keywords: +patch nosy: +SilentGhost, serhiy.storchaka stage: -> patch review type: enhancement -> behavior versions: +Python 3.6 -Python 3.5 Added file: http://bugs.python.org/file42304/issue26648.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26648> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com