From: Thierry Parmentelat Date: Wed, 29 Apr 2015 09:03:03 +0000 (+0200) Subject: was meant with previous commit X-Git-Tag: bootmanager-5.3-1~18 X-Git-Url: http://git.onelab.eu/?p=bootmanager.git;a=commitdiff_plain;h=26dac01fdb602d0c0db3cac2e7c822e197c6d5c7 was meant with previous commit --- diff --git a/source/systeminfo.py b/source/systeminfo.py index cdbbb0d..a0de777 100755 --- a/source/systeminfo.py +++ b/source/systeminfo.py @@ -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