From 89c11ca4a011d2d68c90dd335d69095e1acc2909 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Thu, 20 May 2010 10:42:20 +0200 Subject: [PATCH] fix pyflakes errors --- weboob/backends/youjizz/browser.py | 10 +++++----- weboob/backends/youporn/browser.py | 1 - weboob/backends/youtube/browser.py | 7 +++---- weboob/tools/parsers/lxmlsoupparser.py | 8 ++++---- 4 files changed, 12 insertions(+), 14 deletions(-) diff --git a/weboob/backends/youjizz/browser.py b/weboob/backends/youjizz/browser.py index 01745a88..e90e11fc 100644 --- a/weboob/backends/youjizz/browser.py +++ b/weboob/backends/youjizz/browser.py @@ -1,24 +1,24 @@ # -*- coding: utf-8 -*- # Copyright(C) 2010 Roger Philibert -# +# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, version 3 of the License. -# +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -import lxml import re import urllib +from logging import warning from weboob.tools.browser import BaseBrowser @@ -35,7 +35,7 @@ class YoujizzBrowser(BaseBrowser): PAGES = {r'http://.*youjizz\.com/?': IndexPage, r'http://.*youjizz\.com/search/.+\.html': IndexPage, } - + def get_video(self, url): data = self.openurl(url).read() def _get_url(): diff --git a/weboob/backends/youporn/browser.py b/weboob/backends/youporn/browser.py index ba82219b..f4ea77f1 100644 --- a/weboob/backends/youporn/browser.py +++ b/weboob/backends/youporn/browser.py @@ -22,7 +22,6 @@ from weboob.tools.browser import BaseBrowser from .pages.index import IndexPage from .pages.video import VideoPage -from .video import YoupornVideo __all__ = ['YoupornBrowser'] diff --git a/weboob/backends/youtube/browser.py b/weboob/backends/youtube/browser.py index 6451cfec..62c870b9 100644 --- a/weboob/backends/youtube/browser.py +++ b/weboob/backends/youtube/browser.py @@ -1,16 +1,16 @@ # -*- coding: utf-8 -*- # Copyright(C) 2010 Christophe Benz, Romain Bignon -# +# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, version 3 of the License. -# +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -19,7 +19,6 @@ from weboob.tools.browser import BaseBrowser from .pages import VideoPage -from .video import YoutubeVideo __all__ = ['YoutubeBrowser'] diff --git a/weboob/tools/parsers/lxmlsoupparser.py b/weboob/tools/parsers/lxmlsoupparser.py index 0df80e38..aedbd493 100644 --- a/weboob/tools/parsers/lxmlsoupparser.py +++ b/weboob/tools/parsers/lxmlsoupparser.py @@ -1,16 +1,16 @@ # -*- coding: utf-8 -*- # Copyright(C) 2010 Christophe Benz -# +# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, version 3 of the License. -# +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -21,7 +21,7 @@ import lxml.html.soupparser from .iparser import IParser -__all__ = ['LxmlHtmlParser'] +__all__ = ['LxmlSoupParser'] class LxmlSoupParser(IParser):