On Python 2, use urllib2 instead of urllib, which allows us to specify timeout

parameter.
This commit is contained in:
Ashesh Vashi 2016-03-18 10:08:32 +05:30
parent 328428ab22
commit 09bdf1fab7

View File

@ -25,7 +25,7 @@ import config
try: try:
import urllib.request as urlreq import urllib.request as urlreq
except: except:
import urllib as urlreq import urllib2 as urlreq
MODULE_NAME = 'browser' MODULE_NAME = 'browser'