mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-03 03:42:35 +01:00
wa: pep8 fixes
This commit is contained in:
@@ -65,7 +65,7 @@ from datetime import datetime
|
||||
import yaml as _yaml
|
||||
import dateutil.parser
|
||||
|
||||
#pylint: disable=redefined-builtin
|
||||
# pylint: disable=redefined-builtin
|
||||
from past.builtins import basestring
|
||||
|
||||
from wa.framework.exception import SerializerSyntaxError
|
||||
@@ -275,7 +275,7 @@ class python(object):
|
||||
exec(s, pod) # pylint: disable=exec-used
|
||||
except SyntaxError as e:
|
||||
raise SerializerSyntaxError(e.message, e.lineno)
|
||||
for k in list(pod.keys()): # pylint: disable=consider-iterating-dictionary
|
||||
for k in list(pod.keys()): # pylint: disable=consider-iterating-dictionary
|
||||
if k.startswith('__'):
|
||||
del pod[k]
|
||||
return pod
|
||||
@@ -351,7 +351,7 @@ def _write_pod(pod, wfh, fmt=None):
|
||||
|
||||
|
||||
def is_pod(obj):
|
||||
if type(obj) not in POD_TYPES: #pylint: disable=unidiomatic-typecheck
|
||||
if type(obj) not in POD_TYPES: # pylint: disable=unidiomatic-typecheck
|
||||
return False
|
||||
if hasattr(obj, 'items'):
|
||||
for k, v in obj.items():
|
||||
|
Reference in New Issue
Block a user