summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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):