[PATCH] keepalive: drop python 2.2 legacy code

Bryan O'Sullivan bos at serpentine.com
Tue Oct 2 16:29:30 CDT 2012


# HG changeset patch
# User Bryan O'Sullivan <bryano at fb.com>
# Date 1349213233 25200
# Node ID 5b1b0e4e6902983debf3db8352f0715d75ca85fc
# Parent  fa714f3ed2989aff64c267c9935251d9fc4f31ee
keepalive: drop python 2.2 legacy code

diff --git a/mercurial/keepalive.py b/mercurial/keepalive.py
--- a/mercurial/keepalive.py
+++ b/mercurial/keepalive.py
@@ -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 = ''


More information about the Mercurial-devel mailing list