Use 'except ... as' syntax in contrib/ and test/ too

This commit is contained in:
Marius Gedminas
2015-08-27 21:58:51 +03:00
parent eb99aa8c68
commit 9ae66a7f5c
14 changed files with 25 additions and 25 deletions

View File

@@ -20,7 +20,7 @@ else:
def createDaemon():
try:
pid = os.fork()
except OSError, e:
except OSError as e:
raise Exception, "%s [%d]" % (e.strerror, e.errno)
if (pid == 0):
@@ -28,7 +28,7 @@ def createDaemon():
try:
pid = os.fork()
except OSError, e:
except OSError as e:
raise Exception, "%s [%d]" % (e.strerror, e.errno)
if (pid == 0):