diff options
author | Zhizhou Yang <zhizhouy@google.com> | 2020-02-10 15:19:16 -0800 |
---|---|---|
committer | Zhizhou Yang <zhizhouy@google.com> | 2020-02-10 23:56:08 +0000 |
commit | 07a42cb095a6e1bd9cc2cefc63030927d906468c (patch) | |
tree | a5f56fdb431a81b360a63a0c2c5df9260261dfc4 | |
parent | b02958ed918fc6876749f900254fe4e947d33be5 (diff) | |
download | toolchain-utils-07a42cb095a6e1bd9cc2cefc63030927d906468c.tar.gz |
cros_utils: fix imports in cros_utils
There are several non-relative imports in cros_utils and were not caught
by cros lint. This patch fixes them.
BUG=chromium:1011676
TEST=Passed all unittests.
Change-Id: I92880cc00fc7bf7e6af47b2e1452a8c4b3dc00d3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2048584
Commit-Queue: Zhizhou Yang <zhizhouy@google.com>
Tested-by: Zhizhou Yang <zhizhouy@google.com>
Reviewed-by: George Burgess <gbiv@chromium.org>
-rwxr-xr-x | cros_utils/command_executer_unittest.py | 2 | ||||
-rw-r--r-- | cros_utils/manifest_versions.py | 4 | ||||
-rwxr-xr-x | cros_utils/misc_test.py | 2 | ||||
-rwxr-xr-x | cros_utils/perf_diff.py | 4 | ||||
-rwxr-xr-x | cros_utils/tabulator_test.py | 2 | ||||
-rwxr-xr-x | cros_utils/timeline_test.py | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/cros_utils/command_executer_unittest.py b/cros_utils/command_executer_unittest.py index 959000fd..22331ae0 100755 --- a/cros_utils/command_executer_unittest.py +++ b/cros_utils/command_executer_unittest.py @@ -11,7 +11,7 @@ from __future__ import print_function import time import unittest -import command_executer +from cros_utils import command_executer class CommandExecuterTest(unittest.TestCase): diff --git a/cros_utils/manifest_versions.py b/cros_utils/manifest_versions.py index 83e88908..115c6046 100644 --- a/cros_utils/manifest_versions.py +++ b/cros_utils/manifest_versions.py @@ -16,8 +16,8 @@ import shutil import tempfile import time -import command_executer -import logger +from cros_utils import command_executer +from cros_utils import logger def IsCrosVersion(version): diff --git a/cros_utils/misc_test.py b/cros_utils/misc_test.py index cb7b8c89..21a545e9 100755 --- a/cros_utils/misc_test.py +++ b/cros_utils/misc_test.py @@ -14,7 +14,7 @@ __author__ = 'asharif@google.com (Ahmad Sharif)' import unittest # Local modules -import misc +from cros_utils import misc class UtilsTest(unittest.TestCase): diff --git a/cros_utils/perf_diff.py b/cros_utils/perf_diff.py index fed6a81d..b8ddb0c4 100755 --- a/cros_utils/perf_diff.py +++ b/cros_utils/perf_diff.py @@ -18,8 +18,8 @@ import functools import re import sys -import misc -import tabulator +from cros_utils import misc +from cros_utils import tabulator ROWS_TO_SHOW = 'Rows_to_show_in_the_perf_table' TOTAL_EVENTS = 'Total_events_of_this_profile' diff --git a/cros_utils/tabulator_test.py b/cros_utils/tabulator_test.py index 4c0f8677..227e2d70 100755 --- a/cros_utils/tabulator_test.py +++ b/cros_utils/tabulator_test.py @@ -14,7 +14,7 @@ __author__ = 'asharif@google.com (Ahmad Sharif)' import unittest # Local modules -import tabulator +from cros_utils import tabulator class TabulatorTest(unittest.TestCase): diff --git a/cros_utils/timeline_test.py b/cros_utils/timeline_test.py index 314cf3c4..8a10e549 100755 --- a/cros_utils/timeline_test.py +++ b/cros_utils/timeline_test.py @@ -13,7 +13,7 @@ __author__ = 'yunlian@google.com (Yunlian Jiang)' import time import unittest -import timeline +from cros_utils import timeline class TimeLineTest(unittest.TestCase): |