From 1550e9a78862eed490607b32d3ca6b011eb613cb Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Tue, 3 Jul 2018 12:32:21 +0100 Subject: [PATCH] wa/utils: Remove unrequired imports --- wa/utils/cpustates.py | 2 -- wa/utils/diff.py | 4 ++-- wa/utils/misc.py | 15 +++++++-------- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/wa/utils/cpustates.py b/wa/utils/cpustates.py index c2557cd4..71f53b2f 100755 --- a/wa/utils/cpustates.py +++ b/wa/utils/cpustates.py @@ -15,12 +15,10 @@ import os -import sys import re import logging from ctypes import c_int32 from collections import defaultdict -import argparse from devlib.utils.csvutil import create_writer, csvwriter diff --git a/wa/utils/diff.py b/wa/utils/diff.py index b234c2c8..5f126358 100644 --- a/wa/utils/diff.py +++ b/wa/utils/diff.py @@ -17,12 +17,12 @@ import os import re import logging +#pyline disable=redefined-builtin from builtins import zip from future.moves.itertools import zip_longest -from wa.utils.misc import as_relative, diff_tokens, write_table +from wa.utils.misc import diff_tokens, write_table from wa.utils.misc import ensure_file_directory_exists as _f -from wa.utils.misc import ensure_directory_exists as _d logger = logging.getLogger('diff') diff --git a/wa/utils/misc.py b/wa/utils/misc.py index bc15f4e2..6a70aee5 100644 --- a/wa/utils/misc.py +++ b/wa/utils/misc.py @@ -19,18 +19,17 @@ Miscellaneous functions that don't fit anywhere else. """ -import os -import sys -import re -import math +import hashlib import imp +import logging +import math +import os +import random +import re import string import subprocess -import traceback -import logging -import random -import hashlib import sys +import traceback from datetime import datetime, timedelta from operator import mul if sys.version_info[0] == 3: