pylint: fix bad-mcs-classmethod-argument

Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
Jan Barta 2016-06-03 13:35:46 +02:00 committed by Martin Basti
parent f252f50987
commit 8420d04f38
2 changed files with 2 additions and 3 deletions

View File

@ -82,11 +82,11 @@ def run_generator_with_yield_from(gen):
class InnerClassMeta(type):
def __new__(cls, name, bases, class_dict):
def __new__(mcs, name, bases, class_dict):
class_dict.pop('__outer_class__', None)
class_dict.pop('__outer_name__', None)
return super(InnerClassMeta, cls).__new__(cls, name, bases, class_dict)
return super(InnerClassMeta, mcs).__new__(mcs, name, bases, class_dict)
def __get__(self, obj, obj_type):
outer_class, outer_name = self.__bind(obj_type)

View File

@ -60,7 +60,6 @@ disable=
unused-variable,
useless-else-on-loop,
bad-continuation,
bad-mcs-classmethod-argument,
bad-mcs-method-argument,
bad-whitespace,
blacklisted-name,