try:
meminfo_file = file(PROC_MEMINFO_PATH,"r")
- except IOError, e:
+ except IOError as e:
return
total_memory = None
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