1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

Restore Python 2.6.<6 compatibility (Fixes #1860)

This commit is contained in:
Philipp Hagemeister 2013-12-09 03:02:54 +01:00
parent 7cc3570e53
commit ac79fa02b8

View file

@ -547,7 +547,7 @@ def make_HTTPS_handler(opts_no_check_certificate):
def connect(self): def connect(self):
sock = socket.create_connection((self.host, self.port), self.timeout) sock = socket.create_connection((self.host, self.port), self.timeout)
if self._tunnel_host: if getattr(self, '_tunnel_host', False):
self.sock = sock self.sock = sock
self._tunnel() self._tunnel()
try: try: