mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
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:
parent
f51df58b2c
commit
1f6bf6ec14
11
salt/log.py
11
salt/log.py
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user