]> granicus.if.org Git - python/commit
- Issue #2091: error correctly on open() with mode 'U' and '+'
authorRobert Collins <rbtcollins@hp.com>
Sat, 25 Jul 2015 18:43:13 +0000 (06:43 +1200)
committerRobert Collins <rbtcollins@hp.com>
Sat, 25 Jul 2015 18:43:13 +0000 (06:43 +1200)
commitc94a1dc4c9a5d23fdb21f6928dd737a59ef3dfb2
treeabbbf37e11a6ba307ba00eaa2cf40e27d62d09d2
parent882667203ca638ffce4238740c521c2a8320be09
- Issue #2091: error correctly on open() with mode 'U' and '+'

open() accepted a 'U' mode string containing '+', but 'U' can only be used with
'r'. Patch from Jeff Balogh and John O'Connor.
Lib/_pyio.py
Lib/test/test_file.py
Misc/NEWS
Modules/_io/_iomodule.c