diff options
author | Gary Lin <glin@suse.com> | 2018-07-13 18:18:39 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-07-16 11:22:15 +0800 |
commit | 72a836c00a3bd57420a324bd9cf086298849e21b (patch) | |
tree | 0afc1446cba5dfaf04a3db60f1f183226181e048 /BaseTools/Source/Python/BPDG/GenVpd.py | |
parent | 9f3594782de9051cbf599f9af006903ed3f6669e (diff) | |
download | edk2-72a836c00a3bd57420a324bd9cf086298849e21b.tar.gz edk2-72a836c00a3bd57420a324bd9cf086298849e21b.tar.bz2 edk2-72a836c00a3bd57420a324bd9cf086298849e21b.zip |
BaseTools: Use absolute import in BPDG
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/BPDG/GenVpd.py')
-rw-r--r-- | BaseTools/Source/Python/BPDG/GenVpd.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/BPDG/GenVpd.py b/BaseTools/Source/Python/BPDG/GenVpd.py index 2eefcc2490..cd272a2d9a 100644 --- a/BaseTools/Source/Python/BPDG/GenVpd.py +++ b/BaseTools/Source/Python/BPDG/GenVpd.py @@ -13,9 +13,10 @@ # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
+from __future__ import absolute_import
import Common.LongFilePathOs as os
from io import BytesIO
-import StringTable as st
+from . import StringTable as st
import array
import re
from Common.LongFilePathSupport import OpenLongFilePath as open
|