mirror of https://github.com/acidanthera/audk.git
BaseTools: Remove the "from __future__ import" items
Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
6693f359b3
commit
487062c048
|
@ -15,8 +15,6 @@
|
|||
|
||||
## Import Modules
|
||||
#
|
||||
from __future__ import print_function
|
||||
from __future__ import absolute_import
|
||||
import Common.LongFilePathOs as os
|
||||
import re
|
||||
import os.path as path
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import print_function
|
||||
import Common.LongFilePathOs as os
|
||||
import re
|
||||
import copy
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
|
||||
## Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
import string
|
||||
import collections
|
||||
import struct
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
|
||||
## Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
import Common.LongFilePathOs as os
|
||||
import sys
|
||||
import string
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
from io import BytesIO
|
||||
from Common.Misc import *
|
||||
from Common.StringUtils import StringToArray
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
import Common.EdkLogger as EdkLogger
|
||||
from Common.BuildToolError import *
|
||||
from Common.StringUtils import GetLineNo
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
import re
|
||||
import Common.EdkLogger as EdkLogger
|
||||
from Common.BuildToolError import *
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import print_function
|
||||
import Common.LongFilePathOs as os, codecs, re
|
||||
import distutils.util
|
||||
import Common.EdkLogger as EdkLogger
|
||||
|
|
|
@ -20,8 +20,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import print_function
|
||||
from __future__ import absolute_import
|
||||
import Common.LongFilePathOs as os
|
||||
import sys
|
||||
import encodings.ascii
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
# 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
|
||||
from . import StringTable as st
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
import sqlite3
|
||||
import Common.LongFilePathOs as os
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
#
|
||||
|
||||
## Import modules
|
||||
from __future__ import absolute_import
|
||||
import Common.LongFilePathOs as os, sys, logging
|
||||
import traceback
|
||||
from .BuildToolError import *
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
|
||||
## Import Modules
|
||||
#
|
||||
from __future__ import print_function
|
||||
from __future__ import absolute_import
|
||||
from Common.GlobalData import *
|
||||
from CommonDataClass.Exceptions import BadExpression
|
||||
from CommonDataClass.Exceptions import WrnExpression
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#
|
||||
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
from . import LongFilePathOsPath
|
||||
from Common.LongFilePathSupport import LongFilePath
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
import Common.LongFilePathOs as os
|
||||
import sys
|
||||
import string
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
from .StringUtils import *
|
||||
from CommonDataClass.DataClass import *
|
||||
from .DataType import *
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
|
||||
# # Import Modules
|
||||
#
|
||||
from __future__ import print_function
|
||||
from Common.GlobalData import *
|
||||
from CommonDataClass.Exceptions import BadExpression
|
||||
from CommonDataClass.Exceptions import WrnExpression
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
import re
|
||||
from . import DataType
|
||||
import Common.LongFilePathOs as os
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import print_function
|
||||
from __future__ import absolute_import
|
||||
import Common.LongFilePathOs as os
|
||||
from . import EdkLogger
|
||||
from . import DataType
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
import Common.LongFilePathOs as os
|
||||
import re
|
||||
from . import EdkLogger
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#
|
||||
from __future__ import print_function
|
||||
import Common.LongFilePathOs as os
|
||||
import re
|
||||
import Common.EdkLogger as EdkLogger
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
from struct import *
|
||||
import Common.LongFilePathOs as os
|
||||
from io import BytesIO
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
from .GenFdsGlobalVariable import GenFdsGlobalVariable
|
||||
from .GenFdsGlobalVariable import FindExtendTool
|
||||
from CommonDataClass.FdfClass import CapsuleClassObject
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
from . import Ffs
|
||||
from .GenFdsGlobalVariable import GenFdsGlobalVariable
|
||||
from io import BytesIO
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
from .Ffs import Ffs
|
||||
from . import Section
|
||||
import subprocess
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
from . import Section
|
||||
from .GenFdsGlobalVariable import GenFdsGlobalVariable
|
||||
import subprocess
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
from . import Section
|
||||
from .GenFdsGlobalVariable import GenFdsGlobalVariable
|
||||
import subprocess
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
from struct import *
|
||||
from . import Section
|
||||
from .GenFdsGlobalVariable import GenFdsGlobalVariable
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
from . import Region
|
||||
from . import Fv
|
||||
import Common.LongFilePathOs as os
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import print_function
|
||||
from __future__ import absolute_import
|
||||
import re
|
||||
|
||||
from . import Fd
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
from . import Ffs
|
||||
from . import Rule
|
||||
import Common.LongFilePathOs as os
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
from . import Rule
|
||||
import Common.LongFilePathOs as os
|
||||
from io import BytesIO
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
from __future__ import absolute_import
|
||||
## @file
|
||||
# process FV generation
|
||||
#
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
from . import Section
|
||||
from io import BytesIO
|
||||
from .Ffs import Ffs
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import print_function
|
||||
from __future__ import absolute_import
|
||||
from optparse import OptionParser
|
||||
import sys
|
||||
import Common.LongFilePathOs as os
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import print_function
|
||||
import Common.LongFilePathOs as os
|
||||
import sys
|
||||
import subprocess
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
from . import Section
|
||||
import subprocess
|
||||
from .Ffs import Ffs
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
import Common.LongFilePathOs as os
|
||||
|
||||
from .GenFdsGlobalVariable import GenFdsGlobalVariable
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
from . import RuleSimpleFile
|
||||
from . import RuleComplexFile
|
||||
from . import Section
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
import Common.LongFilePathOs as os
|
||||
import subprocess
|
||||
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
from struct import *
|
||||
from .GenFdsGlobalVariable import GenFdsGlobalVariable
|
||||
from io import BytesIO
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
from . import Rule
|
||||
from CommonDataClass.FdfClass import RuleComplexFileClassObject
|
||||
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
from . import Rule
|
||||
from CommonDataClass.FdfClass import RuleSimpleFileClassObject
|
||||
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
from CommonDataClass.FdfClass import SectionClassObject
|
||||
from .GenFdsGlobalVariable import GenFdsGlobalVariable
|
||||
import Common.LongFilePathOs as os, glob
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
from . import Section
|
||||
from .Ffs import Ffs
|
||||
import subprocess
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
from .Ffs import Ffs
|
||||
from . import Section
|
||||
import Common.LongFilePathOs as os
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
from .GenFdsGlobalVariable import GenFdsGlobalVariable
|
||||
import Common.LongFilePathOs as os
|
||||
from CommonDataClass.FdfClass import VtfClassObject
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
#
|
||||
|
||||
#====================================== External Libraries ========================================
|
||||
from __future__ import print_function
|
||||
import optparse
|
||||
import Common.LongFilePathOs as os
|
||||
import re
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
'''
|
||||
Pkcs7Sign
|
||||
'''
|
||||
from __future__ import print_function
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
'''
|
||||
Rsa2048Sha256GenerateKeys
|
||||
'''
|
||||
from __future__ import print_function
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
'''
|
||||
Rsa2048Sha256Sign
|
||||
'''
|
||||
from __future__ import print_function
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
import Common.EdkLogger as EdkLogger
|
||||
import CommonDataClass.DataClass as DataClass
|
||||
from Table.Table import Table
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
import Common.EdkLogger as EdkLogger
|
||||
import CommonDataClass.DataClass as DataClass
|
||||
from Table.Table import Table
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
from __future__ import absolute_import
|
||||
## @file
|
||||
# This file is used to create/update/query/erase table for dsc datas
|
||||
#
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
import Common.EdkLogger as EdkLogger
|
||||
import Common.LongFilePathOs as os, time
|
||||
from Table.Table import Table
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
import Common.EdkLogger as EdkLogger
|
||||
import CommonDataClass.DataClass as DataClass
|
||||
from Table.Table import Table
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
import Common.EdkLogger as EdkLogger
|
||||
from Table.Table import Table
|
||||
from Common.StringUtils import ConvertToSqlString
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
import Common.EdkLogger as EdkLogger
|
||||
from Table.Table import Table
|
||||
from Common.StringUtils import ConvertToSqlString
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
import Common.EdkLogger as EdkLogger
|
||||
from Common.StringUtils import ConvertToSqlString
|
||||
from Table.Table import Table
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
import Common.EdkLogger as EdkLogger
|
||||
import CommonDataClass.DataClass as DataClass
|
||||
from Table.Table import Table
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
import Common.EdkLogger as EdkLogger
|
||||
from Table.Table import Table
|
||||
from Common.StringUtils import ConvertToSqlString
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
import Common.EdkLogger as EdkLogger
|
||||
from Common.StringUtils import ConvertToSqlString
|
||||
from Table.Table import Table
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
import Common.EdkLogger as EdkLogger
|
||||
import Common.LongFilePathOs as os, time
|
||||
from Table.Table import Table
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#
|
||||
|
||||
from __future__ import print_function
|
||||
import Common.LongFilePathOs as os
|
||||
import sys
|
||||
import traceback
|
||||
|
|
|
@ -17,8 +17,6 @@
|
|||
# This class is used to retrieve information stored in database and convert them
|
||||
# into PlatformBuildClassObject form for easier use for AutoGen.
|
||||
#
|
||||
from __future__ import print_function
|
||||
from __future__ import absolute_import
|
||||
from Common.StringUtils import *
|
||||
from Common.DataType import *
|
||||
from Common.Misc import *
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#
|
||||
|
||||
from __future__ import absolute_import
|
||||
from Common.DataType import *
|
||||
from Common.Misc import *
|
||||
from Common.caching import cached_property, cached_class_function
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import print_function
|
||||
from __future__ import absolute_import
|
||||
import Common.LongFilePathOs as os
|
||||
import re
|
||||
import time
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
import uuid
|
||||
|
||||
import Common.EdkLogger as EdkLogger
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#
|
||||
|
||||
from __future__ import absolute_import
|
||||
from collections import OrderedDict, defaultdict
|
||||
from Common.DataType import SUP_MODULE_USER_DEFINED
|
||||
from .BuildClassObject import LibraryClassObject
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
import sqlite3
|
||||
from Common.StringUtils import *
|
||||
from Common.DataType import *
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
##
|
||||
# Import Modules
|
||||
#
|
||||
from __future__ import print_function
|
||||
import Common.LongFilePathOs as os
|
||||
import re
|
||||
from io import BytesIO
|
||||
|
|
Loading…
Reference in New Issue