# License: This file is licensed under the GPL v2.
###############################################################################
-import fileinput
import os
import subprocess
import sys
f = open(os.path.join(root, name))
lines.extend(f.readlines())
f.close()
- except:
+ except Exception:
print("W: Error while getting bootparams from %s" % p)
f = open("/proc/cmdline")
f = open(filename, "r")
lines = f.readlines()
f.close()
- return not XORG_CONF_HEADER in lines
+ return XORG_CONF_HEADER not in lines
except IOError:
return False