pyflakes fixes

This commit is contained in:
Romain Bignon 2010-08-02 15:13:50 +02:00
commit ab0b47ee87
4 changed files with 2 additions and 4 deletions

View file

@ -16,7 +16,6 @@
# 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 urllib2
from PyQt4.QtGui import QFrame, QImage, QPixmap from PyQt4.QtGui import QFrame, QImage, QPixmap
from weboob.tools.application.qt import QtDo from weboob.tools.application.qt import QtDo

View file

@ -77,7 +77,7 @@ class DLFP(BaseBrowser):
url = '%s://%s/submit/comments,%d,%d,%d.html#post' % (self.PROTOCOL, self.DOMAIN, thread_id, reply_id, content_type) url = '%s://%s/submit/comments,%d,%d,%d.html#post' % (self.PROTOCOL, self.DOMAIN, thread_id, reply_id, content_type)
request = self.request_class(url, urllib.urlencode(data), {'Referer': url}) request = self.request_class(url, urllib.urlencode(data), {'Referer': url})
result = self.openurl(request).read() self.openurl(request).read()
# No message to send # No message to send
return () return ()

View file

@ -38,7 +38,6 @@ class IndexPage(BasePage):
thumbnail_url = span.find('.//img').attrib['src'] thumbnail_url = span.find('.//img').attrib['src']
selector = 'span#title1'
title_el = select(span, 'span#title1', 1) title_el = select(span, 'span#title1', 1)
title = title_el.text.strip() title = title_el.text.strip()

View file

@ -19,7 +19,7 @@
from weboob.tools.browser import BaseBrowser from weboob.tools.browser import BaseBrowser
from weboob.tools.browser.decorators import id2url from weboob.tools.browser.decorators import id2url
from .pages import ForbiddenVideo, ForbiddenVideoPage, VerifyAgePage, VideoPage from .pages import ForbiddenVideoPage, VerifyAgePage, VideoPage
from .video import YoutubeVideo from .video import YoutubeVideo