was meant with previous commit
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 29 Apr 2015 09:03:03 +0000 (11:03 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 29 Apr 2015 09:03:03 +0000 (11:03 +0200)
source/systeminfo.py

index cdbbb0d..a0de777 100755 (executable)
@@ -62,7 +62,7 @@ def get_total_phsyical_mem(vars = {}, log = sys.stderr):
 
     try:
         meminfo_file = file(PROC_MEMINFO_PATH,"r")
-    except IOError, e:
+    except IOError as e:
         return
 
     total_memory = None
@@ -71,7 +71,7 @@ def get_total_phsyical_mem(vars = {}, log = sys.stderr):
 
         try:
             (fieldname,value) = string.split(line,":")
-        except ValueError, e:
+        except ValueError as e:
             # this will happen for lines that don't have two values
             # (like the first line on 2.4 kernels)
             continue