mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-29 00:20:48 +00:00
Restore Python 2.6.<6 compatibility (Fixes #1860)
This commit is contained in:
parent
7cc3570e53
commit
ac79fa02b8
1 changed files with 1 additions and 1 deletions
|
@ -547,7 +547,7 @@ def __init__(self, *args, **kwargs):
|
|||
|
||||
def connect(self):
|
||||
sock = socket.create_connection((self.host, self.port), self.timeout)
|
||||
if self._tunnel_host:
|
||||
if getattr(self, '_tunnel_host', False):
|
||||
self.sock = sock
|
||||
self._tunnel()
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue