Use syntax that works on both py2.7 and py3

This commit is contained in:
Mark Haines 2016-03-07 20:13:10 +00:00
parent 80916e6884
commit 239badea9b
8 changed files with 10 additions and 10 deletions

View file

@ -104,7 +104,7 @@ class Config(object):
dir_path = cls.abspath(dir_path)
try:
os.makedirs(dir_path)
except OSError, e:
except OSError as e:
if e.errno != errno.EEXIST:
raise
if not os.path.isdir(dir_path):