Skip to content
Snippets Groups Projects
Commit 680322e0 authored by Gregory Szorc's avatar Gregory Szorc
Browse files

url: remove Python 2.7 support code

Differential Revision: https://phab.mercurial-scm.org/D12342
parent 2cce2fa5
No related branches found
No related tags found
1 merge request!168branching: merge default into stable
......@@ -10,7 +10,6 @@
import base64
import socket
import sys
from .i18n import _
from .pycompat import getattr
......@@ -343,16 +342,6 @@
keepalive.HTTPConnection.__init__(self, *args, **kwargs)
self._create_connection = createconn
if sys.version_info < (2, 7, 7):
# copied from 2.7.14, since old implementations directly call
# socket.create_connection()
def connect(self):
self.sock = self._create_connection(
(self.host, self.port), self.timeout, self.source_address
)
if self._tunnel_host:
self._tunnel()
class logginghttphandler(httphandler):
"""HTTP handler that logs socket I/O."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment