]> granicus.if.org Git - python/commitdiff
Revert the modification of e.strerror in 3.2 as that kind of change could
authorGregory P. Smith <greg@krypto.org>
Sun, 3 Jun 2012 21:39:26 +0000 (14:39 -0700)
committerGregory P. Smith <greg@krypto.org>
Sun, 3 Jun 2012 21:39:26 +0000 (14:39 -0700)
break someone's over specified test that depends on the exact error message.

Lib/os.py

index 864edfd48e00eefa7f0690ace98f9ae3a7f88f53..d1101a26a0d87929f392ff22b48e74008a13369c 100644 (file)
--- 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):