mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 11:22:41 +01:00
framework: pep8 fixes
Fix issues reported by flake8.
This commit is contained in:
committed by
Marc Bonnici
parent
88c5005b38
commit
03eafe6b33
@@ -12,6 +12,10 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
# Because of use of Enum (dynamic attrs)
|
||||
# pylint: disable=no-member
|
||||
|
||||
import uuid
|
||||
from collections import OrderedDict, Counter
|
||||
from copy import copy
|
||||
@@ -19,8 +23,6 @@ from datetime import datetime, timedelta
|
||||
|
||||
from wa.framework.configuration.core import Status
|
||||
|
||||
# Because of use of Enum (dynamic attrs)
|
||||
# pylint: disable=no-member
|
||||
|
||||
class RunInfo(object):
|
||||
"""
|
||||
@@ -36,8 +38,7 @@ class RunInfo(object):
|
||||
uid = uuid.UUID(uid)
|
||||
instance = RunInfo(**pod)
|
||||
instance.uuid = uid
|
||||
instance.duration = duration if duration is None else\
|
||||
timedelta(seconds=duration)
|
||||
instance.duration = duration if duration is None else timedelta(seconds=duration)
|
||||
return instance
|
||||
|
||||
def __init__(self, run_name=None, project=None, project_stage=None,
|
||||
|
Reference in New Issue
Block a user