diff options
author | Gary Lin <glin@suse.com> | 2018-07-13 18:18:42 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-07-16 11:22:17 +0800 |
commit | b6f6b636b038e780c87892b17835bb6d043523b8 (patch) | |
tree | e261db2eb2e5b7bd093e13c07b439595cee8e1bd /BaseTools/Source/Python/Ecc/FileProfile.py | |
parent | e52b39ab8e9911dacb2c83a87bfe483397f1ea5f (diff) | |
download | edk2-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.py | 5 |
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)
-
-
|