Aggressive test timeout to catch hanging servers

pull/8/head
Philipp Hagemeister 2013-01-12 20:33:03 +01:00
rodzic 187f491ad2
commit d8bbf2018e
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -26,6 +26,7 @@ cookie_processor = compat_urllib_request.HTTPCookieProcessor(jar)
proxy_handler = compat_urllib_request.ProxyHandler()
opener = compat_urllib_request.build_opener(proxy_handler, cookie_processor, YoutubeDLHandler())
compat_urllib_request.install_opener(opener)
socket.setdefaulttimeout(10)
def _try_rm(filename):
""" Remove a file if it exists """