INFRA-5292 - we must please pylint ...

This commit is contained in:
Tom Williams 2017-09-22 05:19:51 -04:00
parent 7f9a7e2857
commit f6a8a969a4

View File

@ -133,6 +133,7 @@ syslog_levels = {
'DEBUG': 7
}
def setup(tag, **kwargs):
host = kwargs.get('host', 'localhost')
port = kwargs.get('port', 24224)
@ -238,7 +239,7 @@ class MessageFormatter(logging.Formatter, NewStyleClassMixIn):
# These are already handled above or explicitly pruned.
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
else:
val = repr(value)
@ -271,7 +272,7 @@ class MessageFormatter(logging.Formatter, NewStyleClassMixIn):
# These are already handled above or explicitly avoided.
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
else:
val = repr(value)