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

@ -41,7 +41,7 @@ Clément Schreiner <clemux@clemux.info>
* MediaWiki and Newsfeed modules maintainer. * MediaWiki and Newsfeed modules maintainer.
François Revol <revol@free.fr> François Revol <revol@free.fr>
* Europarl and GDCVault modules maintainer. * Europarl, GDCVault and Vimeo modules maintainer.
Pierre Mazière <pierre.maziere@gmx.com> Pierre Mazière <pierre.maziere@gmx.com>
* LCL module maintainer; * LCL module maintainer;

View file

@ -17,9 +17,6 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
import re
from lxml import html
class TokenExtractor: class TokenExtractor:
""" Extracts texts token from an HTML document """ """ Extracts texts token from an HTML document """
def __init__(self): def __init__(self):

View file

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

View file

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