From: Gregory P. Smith Date: Sun, 3 Jun 2012 21:39:26 +0000 (-0700) Subject: Revert the modification of e.strerror in 3.2 as that kind of change could X-Git-Tag: v3.3.0b1~267^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d7d56abf84b8fa0ed425c01b1cae62918fd850a;p=python 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. --- diff --git a/Lib/os.py b/Lib/os.py index 864edfd48e..d1101a26a0 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):