pyflakes fixes
This commit is contained in:
parent
e88247e495
commit
82c59cf612
3 changed files with 1 additions and 5 deletions
|
|
@ -19,15 +19,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
"""
|
||||
|
||||
import urllib
|
||||
from cStringIO import StringIO
|
||||
|
||||
from weboob.tools.browser import BaseBrowser
|
||||
from .pages.index import IndexPage, LoginPage
|
||||
from .pages.news import ContentPage
|
||||
from .tools import id2url, id2threadid, id2contenttype
|
||||
|
||||
from weboob.tools.parsers.htmlparser import HTMLParser
|
||||
|
||||
# Browser
|
||||
class DLFP(BaseBrowser):
|
||||
DOMAIN = 'linuxfr.org'
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
|
||||
from PyQt4.QtCore import SIGNAL
|
||||
|
||||
from weboob.capabilities.video import ICapVideoProvider
|
||||
from weboob.tools.application.qt import QtMainWindow
|
||||
|
||||
from weboob.frontends.qvideoob.ui.main_window_ui import Ui_MainWindow
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ class ConsoleApplication(BaseApplication):
|
|||
nb_min_args -= len(defaults)
|
||||
|
||||
if len(args) < nb_min_args or len(args) > nb_max_args and not varargs:
|
||||
if varargs or default:
|
||||
if varargs or defaults:
|
||||
sys.stderr.write("Command '%s' takes at least %d arguments.\n" % (command, nb_min_args))
|
||||
else:
|
||||
sys.stderr.write("Command '%s' takes %d arguments.\n" % (command, nb_min_args))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue