diff mercurial/keepalive.py @ 17700:5b1b0e4e6902

keepalive: drop python 2.2 legacy code
author Bryan O'Sullivan <bryano@fb.com>
date Tue, 02 Oct 2012 14:27:13 -0700
parents e7cfe3587ea4
children 681f7b9213a4
line wrap: on
line diff
--- a/mercurial/keepalive.py	Mon Oct 01 23:05:02 2012 -0500
+++ b/mercurial/keepalive.py	Tue Oct 02 14:27:13 2012 -0700
@@ -377,10 +377,7 @@
 
 
     def __init__(self, sock, debuglevel=0, strict=0, method=None):
-        if method: # the httplib in python 2.3 uses the method arg
-            httplib.HTTPResponse.__init__(self, sock, debuglevel, method)
-        else: # 2.2 doesn't
-            httplib.HTTPResponse.__init__(self, sock, debuglevel)
+        httplib.HTTPResponse.__init__(self, sock, debuglevel, method)
         self.fileno = sock.fileno
         self.code = None
         self._rbuf = ''