import os
import tempfile
-class Modprobe():
+class Modprobe:
def __init__(self,filename="/etc/modprobe.conf"):
self.conffile = {}
self.origconffile = {}
os.chmod(filename,0644)
return True
else:
+ os.unlink(tmpnam)
return False
def probe(self,name):