summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Ecc/FileProfile.py
diff options
context:
space:
mode:
authorGary Lin <glin@suse.com>2018-07-13 18:18:42 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-07-16 11:22:17 +0800
commitb6f6b636b038e780c87892b17835bb6d043523b8 (patch)
treee261db2eb2e5b7bd093e13c07b439595cee8e1bd /BaseTools/Source/Python/Ecc/FileProfile.py
parente52b39ab8e9911dacb2c83a87bfe483397f1ea5f (diff)
downloadedk2-b6f6b636b038e780c87892b17835bb6d043523b8.tar.gz
edk2-b6f6b636b038e780c87892b17835bb6d043523b8.tar.bz2
edk2-b6f6b636b038e780c87892b17835bb6d043523b8.zip
BaseTools: Use absolute import in Ecc
Based on "futurize -f libfuturize.fixes.fix_absolute_import Contributed-under: TianoCore Contribution Agreement 1.1 Cc: Yonghong Zhu <yonghong.zhu@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Ecc/FileProfile.py')
-rw-r--r--BaseTools/Source/Python/Ecc/FileProfile.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/BaseTools/Source/Python/Ecc/FileProfile.py b/BaseTools/Source/Python/Ecc/FileProfile.py
index a071fd020e..1d3fbf2d3b 100644
--- a/BaseTools/Source/Python/Ecc/FileProfile.py
+++ b/BaseTools/Source/Python/Ecc/FileProfile.py
@@ -16,9 +16,10 @@
# Import Modules
#
+from __future__ import absolute_import
import re
import Common.LongFilePathOs as os
-from ParserWarning import Warning
+from .ParserWarning import Warning
from Common.LongFilePathSupport import OpenLongFilePath as open
CommentList = []
@@ -54,5 +55,3 @@ class FileProfile :
except IOError:
raise Warning("Error when opening file %s" % FileName)
-
-