mirror of
https://github.com/partic2/libffi
synced 2026-11-11 02:27:19 +00:00
Merge pull request #231 from berkerpeksag/simplfy-oserror
Simplify error handling in mkdir_p()
This commit is contained in:
@@ -91,9 +91,7 @@ def mkdir_p(path):
|
|||||||
try:
|
try:
|
||||||
os.makedirs(path)
|
os.makedirs(path)
|
||||||
except OSError as exc: # Python >2.5
|
except OSError as exc: # Python >2.5
|
||||||
if exc.errno == errno.EEXIST:
|
if exc.errno != errno.EEXIST:
|
||||||
pass
|
|
||||||
else:
|
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user