From df3528e454c0342c667d6491140f881eabe8b7ca Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 12 May 2014 11:22:17 +0200 Subject: [PATCH] Fix lint --- qutebrowser/commands/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qutebrowser/commands/utils.py b/qutebrowser/commands/utils.py index c0d018037..b3d13fde2 100644 --- a/qutebrowser/commands/utils.py +++ b/qutebrowser/commands/utils.py @@ -30,7 +30,6 @@ cmd_dict = {} def arg_or_count(arg, count, default=None, countzero=None): - """Get a value based on an argument and count given to a command. If both arg and count are set, ValueError is raised. @@ -122,6 +121,7 @@ class register: # pylint: disable=invalid-name Return: The original function (unmodified). """ + # pylint: disable=no-member names = [] name = func.__name__.lower() if self.name is None else self.name if isinstance(name, str): @@ -131,7 +131,6 @@ class register: # pylint: disable=invalid-name mainname = name[0] names += name argspec = inspect.getfullargspec(func) - # pylint: disable=no-member if 'self' in argspec.args and self.instance is None: raise ValueError("{} is a class method, but instance was not " "given!".format(mainname))