Create a NO-OP mixin to shut up pylint. Fixes #5989.

Craeted a simple new style class to make pylint shut up, because SaltLoggingClass can't subclass `object` directly:

     'Cannot create a consistent method resolution order (MRO) for bases'
This commit is contained in:
Pedro Algarvio 2013-07-06 17:27:29 +01:00
parent f51df58b2c
commit 1f6bf6ec14

View File

@ -138,7 +138,16 @@ class LoggingMixInMeta(type):
)
class SaltLoggingClass(LOGGING_LOGGER_CLASS, object):
class __NewStyleClassMixIn(object):
'''
Simple new style class to make pylint shut up!
This is required because SaltLoggingClass can't subclass object directly:
'Cannot create a consistent method resolution order (MRO) for bases'
'''
class SaltLoggingClass(LOGGING_LOGGER_CLASS, __NewStyleClassMixIn):
__metaclass__ = LoggingMixInMeta
def __new__(cls, logger_name):