mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
INFRA-5292 - we must please pylint ...
This commit is contained in:
parent
7f9a7e2857
commit
f6a8a969a4
@ -133,6 +133,7 @@ syslog_levels = {
|
|||||||
'DEBUG': 7
|
'DEBUG': 7
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def setup(tag, **kwargs):
|
def setup(tag, **kwargs):
|
||||||
host = kwargs.get('host', 'localhost')
|
host = kwargs.get('host', 'localhost')
|
||||||
port = kwargs.get('port', 24224)
|
port = kwargs.get('port', 24224)
|
||||||
@ -238,7 +239,7 @@ class MessageFormatter(logging.Formatter, NewStyleClassMixIn):
|
|||||||
# These are already handled above or explicitly pruned.
|
# These are already handled above or explicitly pruned.
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if isinstance(value, (six.string_types, bool, dict, float, int, list, types.NoneType)):
|
if isinstance(value, (six.string_types, bool, dict, float, int, list, types.NoneType)): # pylint: disable=W1699
|
||||||
val = value
|
val = value
|
||||||
else:
|
else:
|
||||||
val = repr(value)
|
val = repr(value)
|
||||||
@ -271,7 +272,7 @@ class MessageFormatter(logging.Formatter, NewStyleClassMixIn):
|
|||||||
# These are already handled above or explicitly avoided.
|
# These are already handled above or explicitly avoided.
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if isinstance(value, (six.string_types, bool, dict, float, int, list, types.NoneType)):
|
if isinstance(value, (six.string_types, bool, dict, float, int, list, types.NoneType)): # pylint: disable=W1699
|
||||||
val = value
|
val = value
|
||||||
else:
|
else:
|
||||||
val = repr(value)
|
val = repr(value)
|
||||||
|
Loading…
Reference in New Issue
Block a user