1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-06-27 18:53:24 +01:00

I lint, therefore I am

Implement fixes for the most recent pylint version.
This commit is contained in:
Sergei Trofimov
2018-07-09 15:28:22 +01:00
committed by Marc Bonnici
parent 0e0d4e0ff0
commit c410d2e1a1
22 changed files with 53 additions and 51 deletions

@ -323,7 +323,7 @@ class TraceCmdParser(object):
continue
body_parser = EVENT_PARSER_MAP.get(event_name, default_body_parser)
if isinstance(body_parser, str) or isinstance(body_parser, re._pattern_type): # pylint: disable=protected-access
if isinstance(body_parser, (str, re._pattern_type)): # pylint: disable=protected-access
body_parser = regex_body_parser(body_parser)
yield TraceCmdEvent(parser=body_parser, **match.groupdict())