[Python-checkins] cpython (3.2): Revert the modification of e.strerror in 3.2 as that kind of change could
gregory.p.smith
python-checkins at python.org
Sun Jun 3 23:40:41 CEST 2012
http://hg.python.org/cpython/rev/f3ce3e874a58
changeset: 77333:f3ce3e874a58
branch: 3.2
parent: 77331:4c07e4806e69
user: Gregory P. Smith <greg at krypto.org>
date: Sun Jun 03 14:39:26 2012 -0700
summary:
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.
files:
Lib/os.py | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/Lib/os.py b/Lib/os.py
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -163,9 +163,6 @@
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):
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list