summaryrefslogtreecommitdiff
path: root/src/python/m5/util/__init__.py
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2019-01-25 11:46:30 +0000
committerAndreas Sandberg <andreas.sandberg@arm.com>2019-02-23 23:34:05 +0000
commit2bad848b85f3463edca652e0f73cc64c57961fbb (patch)
treec443197788098e575e94530745dec93267192e80 /src/python/m5/util/__init__.py
parentf59e550bc8164a2a8d06bf18099f993c7181367c (diff)
downloadgem5-2bad848b85f3463edca652e0f73cc64c57961fbb.tar.xz
python: Enforce absolute imports for Python 3 compatibility
Change-Id: Ia88d7fd472f7aed9b97df81468211384981bf6c6 Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/15983 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/python/m5/util/__init__.py')
-rw-r--r--src/python/m5/util/__init__.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/python/m5/util/__init__.py b/src/python/m5/util/__init__.py
index 341e54fdb..f7493be22 100644
--- a/src/python/m5/util/__init__.py
+++ b/src/python/m5/util/__init__.py
@@ -45,14 +45,14 @@ import os
import re
import sys
-import convert
-import jobfile
-
-from attrdict import attrdict, multiattrdict, optiondict
-from code_formatter import code_formatter
-from multidict import multidict
-from smartdict import SmartDict
-from sorteddict import SortedDict
+from . import convert
+from . import jobfile
+
+from .attrdict import attrdict, multiattrdict, optiondict
+from .code_formatter import code_formatter
+from .multidict import multidict
+from .smartdict import SmartDict
+from .sorteddict import SortedDict
# panic() should be called when something happens that should never
# ever happen regardless of what the user does (i.e., an acutal m5