Rev 5311: Fix typo but we may want to use addCleanup instead indeed. in file:///home/vila/src/bzr/cleanup/various/

Vincent Ladeuil v.ladeuil+lp at free.fr
Mon Jun 21 09:08:04 BST 2010


At file:///home/vila/src/bzr/cleanup/various/

------------------------------------------------------------
revno: 5311
revision-id: v.ladeuil+lp at free.fr-20100621080804-zv41uq2hc7hkzcii
parent: pqm at pqm.ubuntu.com-20100621054505-7b6lnkos9fcy3d4r
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: various
timestamp: Mon 2010-06-21 10:08:04 +0200
message:
  Fix typo but we may want to use addCleanup instead indeed.
  
  * bzrlib/smart/medium.py:
  (_DebugCounter.__init__): Fix typo s/addCleanup/add_cleanup.
-------------- next part --------------
=== modified file 'bzrlib/smart/medium.py'
--- a/bzrlib/smart/medium.py	2010-06-21 03:55:08 +0000
+++ b/bzrlib/smart/medium.py	2010-06-21 08:08:04 +0000
@@ -503,7 +503,7 @@
         self.counts = weakref.WeakKeyDictionary()
         client._SmartClient.hooks.install_named_hook(
             'call', self.increment_call_count, 'hpss call counter')
-        bzrlib.global_state.cleanups.addCleanup(self.flush_all)
+        bzrlib.global_state.cleanups.add_cleanup(self.flush_all)
 
     def track(self, medium):
         """Start tracking calls made to a medium.



More information about the bazaar-commits mailing list