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>
This commit is contained in:
@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user