diff --git a/AUTHORS b/AUTHORS index e2e5e487..f5b43534 100644 --- a/AUTHORS +++ b/AUTHORS @@ -41,7 +41,7 @@ Clément Schreiner * MediaWiki and Newsfeed modules maintainer. François Revol - * Europarl and GDCVault modules maintainer. + * Europarl, GDCVault and Vimeo modules maintainer. Pierre Mazière * LCL module maintainer; diff --git a/modules/cragr/pages/tokenextractor.py b/modules/cragr/pages/tokenextractor.py index 181b6f8c..abdd280e 100644 --- a/modules/cragr/pages/tokenextractor.py +++ b/modules/cragr/pages/tokenextractor.py @@ -17,9 +17,6 @@ # You should have received a copy of the GNU Affero General Public License # along with weboob. If not, see . -import re -from lxml import html - class TokenExtractor: """ Extracts texts token from an HTML document """ def __init__(self): diff --git a/modules/vimeo/pages.py b/modules/vimeo/pages.py index 26cb869e..5e02c078 100644 --- a/modules/vimeo/pages.py +++ b/modules/vimeo/pages.py @@ -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) - diff --git a/modules/vimeo/video.py b/modules/vimeo/video.py index 10dfd894..a9e58200 100644 --- a/modules/vimeo/video.py +++ b/modules/vimeo/video.py @@ -20,7 +20,6 @@ from weboob.capabilities.video import BaseVideo -import re __all__ = ['VimeoVideo']