summaryrefslogtreecommitdiff
path: root/util/ec3po/console_unittest.py
diff options
context:
space:
mode:
authorRuben Rodriguez Buchillon <coconutruben@chromium.org>2020-11-18 16:55:32 -0800
committerCommit Bot <commit-bot@chromium.org>2021-01-21 06:38:28 +0000
commit6719aaa6b470b1732863fd6c003fa638016c4169 (patch)
tree151315fbe49325c66c39b2080766e4727c156300 /util/ec3po/console_unittest.py
parent2acde897be905170a0825b5a29dd25fdcd1c4139 (diff)
downloadchrome-ec-6719aaa6b470b1732863fd6c003fa638016c4169.tar.gz
ec3po: make py3 and py2 compatible wrt imports
This change uses absolute imports in the console, and the unittest files so that they work on py2 and py3 BUG=b:173654723 BRANCH=None TEST=sudo servod Change-Id: Ic4a8d567625108bbaee4b981016df55ba887da1d Signed-off-by: Ruben Rodriguez Buchillon <coconutruben@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2575379 Reviewed-by: Matthew Blecker <matthewb@chromium.org>
Diffstat (limited to 'util/ec3po/console_unittest.py')
-rwxr-xr-xutil/ec3po/console_unittest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/ec3po/console_unittest.py b/util/ec3po/console_unittest.py
index 66f47be358..1555a92bc5 100755
--- a/util/ec3po/console_unittest.py
+++ b/util/ec3po/console_unittest.py
@@ -18,9 +18,9 @@ import unittest
import six
-import console
-import interpreter
-import threadproc_shim
+from ec3po import console
+from ec3po import interpreter
+from ec3po import threadproc_shim
ESC_STRING = six.int2byte(console.ControlKey.ESC)