diff mercurial/keepalive.py @ 14764:a7d5816087a9 stable

classes: fix class style problems found by b071cd58af50 This makes test-wireprotocol.py work on Python 2.4
author Thomas Arendsen Hein <thomas@intevation.de>
date Wed, 29 Jun 2011 15:00:00 +0200
parents 1ffeeb91c55d
children fd246aefedd3
line wrap: on
line diff
--- a/mercurial/keepalive.py	Wed Jun 29 13:45:51 2011 +0200
+++ b/mercurial/keepalive.py	Wed Jun 29 15:00:00 2011 +0200
@@ -124,7 +124,7 @@
     HANDLE_ERRORS = 1
 else: HANDLE_ERRORS = 0
 
-class ConnectionManager:
+class ConnectionManager(object):
     """
     The connection manager must be able to:
       * keep track of all existing
@@ -187,7 +187,7 @@
         else:
             return dict(self._hostmap)
 
-class KeepAliveHandler:
+class KeepAliveHandler(object):
     def __init__(self):
         self._cm = ConnectionManager()
 
@@ -705,7 +705,7 @@
 def test_timeout(url):
     global DEBUG
     dbbackup = DEBUG
-    class FakeLogger:
+    class FakeLogger(object):
         def debug(self, msg, *args):
             print msg % args
         info = warning = error = debug