broken build
[pyplnet.git] / modprobe.py
index da311ff..b56f5d5 100644 (file)
@@ -7,7 +7,7 @@
 import os
 import tempfile
 
-class Modprobe():
+class Modprobe:
     def __init__(self,filename="/etc/modprobe.conf"):
         self.conffile = {}
         self.origconffile = {}
@@ -99,6 +99,7 @@ class Modprobe():
             os.chmod(filename,0644)
             return True
         else:
+            os.unlink(tmpnam)
             return False
 
     def probe(self,name):