A feature-rich command-line audio/video downloader
Restore Python 2.6.<6 compatibility (Fixes #1860)
Philipp Hagemeisterac79fa02b80f
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.pyindex a84aa59c22..5ba06d965f 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 = sockself._tunnel()try: