mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 07:04:17 +00:00 
			
		
		
		
	wa: Additional pylint fixes
This commit is contained in:
		| @@ -31,7 +31,7 @@ import subprocess | ||||
| import sys | ||||
| import traceback | ||||
| from datetime import datetime, timedelta | ||||
| from functools import reduce | ||||
| from functools import reduce  # pylint: disable=redefined-builtin | ||||
| from operator import mul | ||||
| if sys.version_info[0] == 3: | ||||
|     from io import StringIO | ||||
| @@ -41,9 +41,10 @@ else: | ||||
| from itertools import chain, cycle | ||||
| from distutils.spawn import find_executable  # pylint: disable=no-name-in-module, import-error | ||||
|  | ||||
| import yaml | ||||
| from dateutil import tz | ||||
| import yaml | ||||
|  | ||||
| # pylint: disable=wrong-import-order | ||||
| from devlib.exception import TargetError | ||||
| from devlib.utils.misc import (ABI_MAP, check_output, walk_modules, | ||||
|                                ensure_directory_exists, ensure_file_directory_exists, | ||||
|   | ||||
| @@ -20,10 +20,11 @@ import signal | ||||
| from datetime import datetime | ||||
| from collections import namedtuple | ||||
|  | ||||
| from devlib.utils.misc import memoized | ||||
|  | ||||
| from wa.framework.resource import Executable, NO_ONE, ResourceResolver | ||||
| from wa.utils.exec_control import once_per_class | ||||
|  | ||||
| from devlib.utils.misc import memoized | ||||
|  | ||||
| GENERAL_MODE = 0 | ||||
| GAMEPAD_MODE = 1 | ||||
|   | ||||
| @@ -61,9 +61,8 @@ import re | ||||
| import json as _json | ||||
| from collections import OrderedDict | ||||
| from datetime import datetime | ||||
|  | ||||
| import yaml as _yaml | ||||
| import dateutil.parser | ||||
| import yaml as _yaml | ||||
|  | ||||
| # pylint: disable=redefined-builtin | ||||
| from past.builtins import basestring  # pylint: disable=wrong-import-order | ||||
|   | ||||
| @@ -34,7 +34,7 @@ from bisect import insort | ||||
| if sys.version_info[0] == 3: | ||||
|     from urllib.parse import quote, unquote  # pylint: disable=no-name-in-module, import-error | ||||
|     from past.builtins import basestring  # pylint: disable=redefined-builtin | ||||
|     long = int | ||||
|     long = int  # pylint: disable=redefined-builtin | ||||
| else: | ||||
|     from urllib import quote, unquote  # pylint: disable=no-name-in-module | ||||
| # pylint: disable=wrong-import-position | ||||
| @@ -478,6 +478,7 @@ class obj_dict(MutableMapping): | ||||
|     def from_pod(pod): | ||||
|         return obj_dict(pod) | ||||
|  | ||||
|     # pylint: disable=super-init-not-called | ||||
|     def __init__(self, values=None, not_in_dict=None): | ||||
|         self.__dict__['dict'] = dict(values or {}) | ||||
|         self.__dict__['not_in_dict'] = not_in_dict if not_in_dict is not None else [] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user