Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2d7d56a

Browse files
committed
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.
1 parent 61ed804 commit 2d7d56a

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

Lib/os.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,6 @@ def makedirs(name, mode=0o777, exist_ok=False):
163163
actual_mode = -1
164164
if not (e.errno == errno.EEXIST and exist_ok and dir_exists and
165165
actual_mode == expected_mode):
166-
if dir_exists and actual_mode != expected_mode:
167-
e.strerror += ' (mode %o != expected mode %o)' % (
168-
actual_mode, expected_mode)
169166
raise
170167

171168
def removedirs(name):

0 commit comments

Comments
 (0)