toolsutils.py
changeset 8695 358d8bed9626
parent 7896 4c954e1e73ef
child 8697 574bb05e40a4
--- a/toolsutils.py	Thu Feb 14 15:39:23 2013 +0100
+++ b/toolsutils.py	Thu Feb 14 15:38:25 2013 +0100
@@ -59,7 +59,7 @@
     try:
         makedirs(directory)
         print '-> created directory %s' % directory
-    except OSError, ex:
+    except OSError as ex:
         import errno
         if ex.errno != errno.EEXIST:
             raise
@@ -185,7 +185,7 @@
             option = option.strip().replace(' ', '_')
             value = value.strip()
             current[option] = value or None
-    except IOError, ex:
+    except IOError as ex:
         if raise_if_unreadable:
             raise ExecutionError('%s. Are you logged with the correct user '
                                  'to use this instance?' % ex)