fix pyflakes errors
This commit is contained in:
parent
c1279aa496
commit
89c11ca4a0
4 changed files with 12 additions and 14 deletions
|
|
@ -1,24 +1,24 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Copyright(C) 2010 Roger Philibert
|
# Copyright(C) 2010 Roger Philibert
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, version 3 of the License.
|
# the Free Software Foundation, version 3 of the License.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
|
||||||
import lxml
|
|
||||||
import re
|
import re
|
||||||
import urllib
|
import urllib
|
||||||
|
from logging import warning
|
||||||
|
|
||||||
from weboob.tools.browser import BaseBrowser
|
from weboob.tools.browser import BaseBrowser
|
||||||
|
|
||||||
|
|
@ -35,7 +35,7 @@ class YoujizzBrowser(BaseBrowser):
|
||||||
PAGES = {r'http://.*youjizz\.com/?': IndexPage,
|
PAGES = {r'http://.*youjizz\.com/?': IndexPage,
|
||||||
r'http://.*youjizz\.com/search/.+\.html': IndexPage,
|
r'http://.*youjizz\.com/search/.+\.html': IndexPage,
|
||||||
}
|
}
|
||||||
|
|
||||||
def get_video(self, url):
|
def get_video(self, url):
|
||||||
data = self.openurl(url).read()
|
data = self.openurl(url).read()
|
||||||
def _get_url():
|
def _get_url():
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,6 @@ from weboob.tools.browser import BaseBrowser
|
||||||
|
|
||||||
from .pages.index import IndexPage
|
from .pages.index import IndexPage
|
||||||
from .pages.video import VideoPage
|
from .pages.video import VideoPage
|
||||||
from .video import YoupornVideo
|
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['YoupornBrowser']
|
__all__ = ['YoupornBrowser']
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,16 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Copyright(C) 2010 Christophe Benz, Romain Bignon
|
# Copyright(C) 2010 Christophe Benz, Romain Bignon
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, version 3 of the License.
|
# the Free Software Foundation, version 3 of the License.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
@ -19,7 +19,6 @@
|
||||||
from weboob.tools.browser import BaseBrowser
|
from weboob.tools.browser import BaseBrowser
|
||||||
|
|
||||||
from .pages import VideoPage
|
from .pages import VideoPage
|
||||||
from .video import YoutubeVideo
|
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['YoutubeBrowser']
|
__all__ = ['YoutubeBrowser']
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,16 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Copyright(C) 2010 Christophe Benz
|
# Copyright(C) 2010 Christophe Benz
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, version 3 of the License.
|
# the Free Software Foundation, version 3 of the License.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
@ -21,7 +21,7 @@ import lxml.html.soupparser
|
||||||
from .iparser import IParser
|
from .iparser import IParser
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['LxmlHtmlParser']
|
__all__ = ['LxmlSoupParser']
|
||||||
|
|
||||||
|
|
||||||
class LxmlSoupParser(IParser):
|
class LxmlSoupParser(IParser):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue