[python2.5] urlopen doesn't support timeout on older Pythons

Bug #514373 reported by Stefano Rivera
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ibid
Fix Released
Medium
Stefano Rivera

Bug Description

2010-01-29 17:42:51,556 ERROR plugins: Periodic method failing: Retrieve.poll
Traceback (most recent call last):
  File "/home/stefanor/projects/ibid/tibid/ibid/plugins/__init__.py", line 153, in _run_periodic_handler
    method(event)
  File "/home/stefanor/projects/ibid/tibid/ibid/plugins/feeds.py", line 289, in poll
    feed.update(max_age=self.interval)
  File "/home/stefanor/projects/ibid/tibid/ibid/plugins/feeds.py", line 84, in update
    re.sub(r'\W+', '_', self.name), self.identity_id), headers)
  File "/home/stefanor/projects/ibid/tibid/ibid/utils/__init__.py", line 54, in cacheable_download
    f = _cacheable_download(url, cachefile, headers, timeout)
  File "/home/stefanor/projects/ibid/tibid/ibid/utils/__init__.py", line 96, in _cacheable_download
    connection = urllib2.urlopen(req, timeout=timeout)
TypeError: urlopen() got an unexpected keyword argument 'timeout'

Tags: compat utils

Related branches

Changed in ibid:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.