projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cc3570
)
Restore Python 2.6.<6 compatibility (Fixes #1860)
author
Philipp Hagemeister
<phihag@phihag.de>
Mon, 9 Dec 2013 02:02:54 +0000
(
03:02
+0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Mon, 9 Dec 2013 02:02:54 +0000
(
03:02
+0100)
youtube_dl/utils.py
patch
|
blob
|
history
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index a84aa59c22ac73d8fdd710a1b1c2fd8232e80722..5ba06d965fdd0ca3ca2be9624948c359ce7c5bf5 100644
(file)
--- 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: