mirror of
https://github.com/python/cpython.git
synced 2025-11-13 07:26:31 +00:00
Revert the modification of e.strerror in 3.2 as that kind of change could
break someone's over specified test that depends on the exact error message.
This commit is contained in:
parent
61ed804cd7
commit
2d7d56abf8
1 changed files with 0 additions and 3 deletions
|
|
@ -163,9 +163,6 @@ def makedirs(name, mode=0o777, exist_ok=False):
|
||||||
actual_mode = -1
|
actual_mode = -1
|
||||||
if not (e.errno == errno.EEXIST and exist_ok and dir_exists and
|
if not (e.errno == errno.EEXIST and exist_ok and dir_exists and
|
||||||
actual_mode == expected_mode):
|
actual_mode == expected_mode):
|
||||||
if dir_exists and actual_mode != expected_mode:
|
|
||||||
e.strerror += ' (mode %o != expected mode %o)' % (
|
|
||||||
actual_mode, expected_mode)
|
|
||||||
raise
|
raise
|
||||||
|
|
||||||
def removedirs(name):
|
def removedirs(name):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue