]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/binary.py
fix misspelling cleanup() -> _cleanup()
[dak.git] / daklib / binary.py
index d83737547948da97c8632bd50ea36a861871ac35..fb1cade91daa4fa4ba20e980bf62ca68d2104267 100755 (executable)
@@ -44,7 +44,7 @@ class Binary(object):
         """
         make sure we cleanup when we are garbage collected.
         """
-        self.cleanup()
+        self._cleanup()
 
     def _cleanup(self):
         """
@@ -85,7 +85,7 @@ class Binary(object):
                     reject(utils.prefix_multi_line_string(output, " [ar output:] "), "")
                 else:
                     self.tmpdir = tmpdir
-                    atexit.register( self.cleanup )
+                    atexit.register( self._cleanup )
 
             finally:
                 os.chdir( cwd )