summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2012-06-03 21:39:26 (GMT)
committerGregory P. Smith <greg@krypto.org>2012-06-03 21:39:26 (GMT)
commit2d7d56abf84b8fa0ed425c01b1cae62918fd850a (patch)
tree15f402b48557c1478b983e8d52728850bb1bc6b4 /Lib/os.py
parent61ed804cd747d680606efb59dc2c81559a5b0c33 (diff)
downloadcpython-2d7d56abf84b8fa0ed425c01b1cae62918fd850a.zip
cpython-2d7d56abf84b8fa0ed425c01b1cae62918fd850a.tar.gz
cpython-2d7d56abf84b8fa0ed425c01b1cae62918fd850a.tar.bz2
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.
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/os.py b/Lib/os.py
index 864edfd..d1101a2 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -163,9 +163,6 @@ def makedirs(name, mode=0o777, exist_ok=False):
actual_mode = -1
if not (e.errno == errno.EEXIST and exist_ok and dir_exists and
actual_mode == expected_mode):
- if dir_exists and actual_mode != expected_mode:
- e.strerror += ' (mode %o != expected mode %o)' % (
- actual_mode, expected_mode)
raise
def removedirs(name):