update AUTHORS and fix pyflakes warnings

This commit is contained in:
Romain Bignon 2012-09-12 13:48:33 +02:00
commit bae1675573
4 changed files with 2 additions and 10 deletions

View file

@ -25,11 +25,8 @@ ControlNotFoundError = ClientForm.ControlNotFoundError
from urllib2 import HTTPError
from weboob.tools.browser import BasePage
from weboob.tools.browser import BrowserRetry
from weboob.tools.json import json
from StringIO import StringIO
import re
import datetime
from dateutil.parser import parse as parse_dt
@ -106,10 +103,9 @@ class VideoPage(BasePage):
#print "asking for redirect on '%s'" % (v.url)
self.browser.set_handle_redirect(False)
try:
redir = self.browser.open_novisit(v.url)
self.browser.open_novisit(v.url)
except HTTPError, e:
if e.getcode() == 302 and hasattr(e, 'hdrs'):
#print e.hdrs['Location']
v.url = unicode(e.hdrs['Location'])
self.browser.set_handle_redirect(True)

View file

@ -20,7 +20,6 @@
from weboob.capabilities.video import BaseVideo
import re
__all__ = ['VimeoVideo']