Show More
@@ -10,7 +10,6 b'' | |||||
10 |
|
10 | |||
11 | import base64 |
|
11 | import base64 | |
12 | import socket |
|
12 | import socket | |
13 | import sys |
|
|||
14 |
|
13 | |||
15 | from .i18n import _ |
|
14 | from .i18n import _ | |
16 | from .pycompat import getattr |
|
15 | from .pycompat import getattr | |
@@ -343,16 +342,6 b' class logginghttpconnection(keepalive.HT' | |||||
343 | keepalive.HTTPConnection.__init__(self, *args, **kwargs) |
|
342 | keepalive.HTTPConnection.__init__(self, *args, **kwargs) | |
344 | self._create_connection = createconn |
|
343 | self._create_connection = createconn | |
345 |
|
344 | |||
346 | if sys.version_info < (2, 7, 7): |
|
|||
347 | # copied from 2.7.14, since old implementations directly call |
|
|||
348 | # socket.create_connection() |
|
|||
349 | def connect(self): |
|
|||
350 | self.sock = self._create_connection( |
|
|||
351 | (self.host, self.port), self.timeout, self.source_address |
|
|||
352 | ) |
|
|||
353 | if self._tunnel_host: |
|
|||
354 | self._tunnel() |
|
|||
355 |
|
||||
356 |
|
345 | |||
357 | class logginghttphandler(httphandler): |
|
346 | class logginghttphandler(httphandler): | |
358 | """HTTP handler that logs socket I/O.""" |
|
347 | """HTTP handler that logs socket I/O.""" |
General Comments 0
You need to be logged in to leave comments.
Login now