mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
Apply Python 3 futurize transform lib2to3.fixes.fix_except
This commit is contained in:
committed by
Tim Abbott
parent
e804185ae6
commit
f3d387e727
@@ -87,7 +87,7 @@ def mkdir_p(path):
|
||||
# Python doesn't have an analog to `mkdir -p` < Python 3.2.
|
||||
try:
|
||||
os.makedirs(path)
|
||||
except OSError, e:
|
||||
except OSError as e:
|
||||
if e.errno == errno.EEXIST and os.path.isdir(path):
|
||||
pass
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user