diff options
author | Philipp Hagemeister <[email protected]> | 2013-12-09 03:02:54 +0100 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2013-12-09 03:02:54 +0100 |
commit | ac79fa02b80f91a71b3c1f6d9a750c79d2ff378a (patch) | |
tree | 9ecb62191ef4e552cd404d326c57c546300fffb8 | |
parent | 7cc3570e53a22dd7f8329ecb4105c5738dcf76c9 (diff) | |
download | youtube-dl-ac79fa02b80f91a71b3c1f6d9a750c79d2ff378a.tar.gz youtube-dl-ac79fa02b80f91a71b3c1f6d9a750c79d2ff378a.zip |
Restore Python 2.6.<6 compatibility (Fixes #1860)
-rw-r--r-- | youtube_dl/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index a84aa59c2..5ba06d965 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -547,7 +547,7 @@ def make_HTTPS_handler(opts_no_check_certificate): 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: |