devtools/__init__.py
changeset 10588 fdaa0e4b7eaf
parent 10568 3914388b2d0f
child 10589 7c23b7de2b8d
--- a/devtools/__init__.py	Fri Sep 11 14:27:34 2015 +0200
+++ b/devtools/__init__.py	Fri Sep 11 14:28:06 2015 +0200
@@ -541,7 +541,7 @@
         try:
             subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])
 
-        except OSError, err:
+        except OSError as err:
             if err.errno == errno.ENOENT:
                 raise OSError('"initdb" could not be found. '
                               'You should add the postgresql bin folder to your PATH '
@@ -560,7 +560,7 @@
         subprocess.check_call(['pg_ctl', 'start', '-w', '-D', datadir,
                                '-o', options],
                               env=env)
-    except OSError, err:
+    except OSError as err:
         if err.errno == errno.ENOENT:
             raise OSError('"pg_ctl" could not be found. '
                           'You should add the postgresql bin folder to your PATH '