Skip to content

Commit

Permalink
BaseTools: Remove the "from __future__ import" items
Browse files Browse the repository at this point in the history
Cc: Liming Gao <[email protected]>
Cc: Yonghong Zhu <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yunhua Feng <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
  • Loading branch information
yunhuafx authored and Yonghong Zhu committed Oct 13, 2018
1 parent 6693f35 commit 487062c
Show file tree
Hide file tree
Showing 71 changed files with 0 additions and 79 deletions.
2 changes: 0 additions & 2 deletions BaseTools/Source/Python/AutoGen/AutoGen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/AutoGen/BuildEngine.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
##
# Import Modules
#
from __future__ import print_function
import Common.LongFilePathOs as os
import re
import copy
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/AutoGen/GenC.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

## Import Modules
#
from __future__ import absolute_import
import string
import collections
import struct
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/AutoGen/GenMake.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

## Import Modules
#
from __future__ import absolute_import
import Common.LongFilePathOs as os
import sys
import string
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/AutoGen/GenPcdDb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/AutoGen/IdfClassObject.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/AutoGen/StrGather.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
##
# Import Modules
#
from __future__ import absolute_import
import re
import Common.EdkLogger as EdkLogger
from Common.BuildToolError import *
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/AutoGen/UniClassObject.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions BaseTools/Source/Python/BPDG/BPDG.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/BPDG/GenVpd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/Common/Database.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
##
# Import Modules
#
from __future__ import absolute_import
import sqlite3
import Common.LongFilePathOs as os

Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/Common/EdkLogger.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#

## Import modules
from __future__ import absolute_import
import Common.LongFilePathOs as os, sys, logging
import traceback
from .BuildToolError import *
Expand Down
2 changes: 0 additions & 2 deletions BaseTools/Source/Python/Common/Expression.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/Common/LongFilePathOs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/Common/Misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
##
# Import Modules
#
from __future__ import absolute_import
import Common.LongFilePathOs as os
import sys
import string
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/Common/Parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
##
# Import Modules
#
from __future__ import absolute_import
from .StringUtils import *
from CommonDataClass.DataClass import *
from .DataType import *
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/Common/RangeExpression.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/Common/StringUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
##
# Import Modules
#
from __future__ import absolute_import
import re
from . import DataType
import Common.LongFilePathOs as os
Expand Down
2 changes: 0 additions & 2 deletions BaseTools/Source/Python/Common/TargetTxtClassObject.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/Common/ToolDefClassObject.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
##
# Import Modules
#
from __future__ import absolute_import
import Common.LongFilePathOs as os
import re
from . import EdkLogger
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/Common/VpdInfoFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/GenFds/AprioriSection.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
##
# Import Modules
#
from __future__ import absolute_import
from struct import *
import Common.LongFilePathOs as os
from io import BytesIO
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/GenFds/Capsule.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
##
# Import Modules
#
from __future__ import absolute_import
from .GenFdsGlobalVariable import GenFdsGlobalVariable
from .GenFdsGlobalVariable import FindExtendTool
from CommonDataClass.FdfClass import CapsuleClassObject
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/GenFds/CapsuleData.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
##
# Import Modules
#
from __future__ import absolute_import
from . import Ffs
from .GenFdsGlobalVariable import GenFdsGlobalVariable
from io import BytesIO
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/GenFds/CompressSection.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
##
# Import Modules
#
from __future__ import absolute_import
from .Ffs import Ffs
from . import Section
import subprocess
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/GenFds/DataSection.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
##
# Import Modules
#
from __future__ import absolute_import
from . import Section
from .GenFdsGlobalVariable import GenFdsGlobalVariable
import subprocess
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/GenFds/DepexSection.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
##
# Import Modules
#
from __future__ import absolute_import
from . import Section
from .GenFdsGlobalVariable import GenFdsGlobalVariable
import subprocess
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/GenFds/EfiSection.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
##
# Import Modules
#
from __future__ import absolute_import
from struct import *
from . import Section
from .GenFdsGlobalVariable import GenFdsGlobalVariable
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/GenFds/Fd.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
##
# Import Modules
#
from __future__ import absolute_import
from . import Region
from . import Fv
import Common.LongFilePathOs as os
Expand Down
2 changes: 0 additions & 2 deletions BaseTools/Source/Python/GenFds/FdfParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
##
# Import Modules
#
from __future__ import print_function
from __future__ import absolute_import
import re

from . import Fd
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/GenFds/FfsFileStatement.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
##
# Import Modules
#
from __future__ import absolute_import
from . import Ffs
from . import Rule
import Common.LongFilePathOs as os
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/GenFds/FfsInfStatement.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
##
# Import Modules
#
from __future__ import absolute_import
from . import Rule
import Common.LongFilePathOs as os
from io import BytesIO
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/GenFds/Fv.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
## @file
# process FV generation
#
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/GenFds/FvImageSection.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
##
# Import Modules
#
from __future__ import absolute_import
from . import Section
from io import BytesIO
from .Ffs import Ffs
Expand Down
2 changes: 0 additions & 2 deletions BaseTools/Source/Python/GenFds/GenFds.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
##
# Import Modules
#
from __future__ import print_function
import Common.LongFilePathOs as os
import sys
import subprocess
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/GenFds/GuidSection.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
##
# Import Modules
#
from __future__ import absolute_import
from . import Section
import subprocess
from .Ffs import Ffs
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/GenFds/OptRomFileStatement.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
##
# Import Modules
#
from __future__ import absolute_import
import Common.LongFilePathOs as os

from .GenFdsGlobalVariable import GenFdsGlobalVariable
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/GenFds/OptRomInfStatement.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
##
# Import Modules
#
from __future__ import absolute_import
from . import RuleSimpleFile
from . import RuleComplexFile
from . import Section
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/GenFds/OptionRom.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
##
# Import Modules
#
from __future__ import absolute_import
import Common.LongFilePathOs as os
import subprocess

Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/GenFds/Region.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
##
# Import Modules
#
from __future__ import absolute_import
from struct import *
from .GenFdsGlobalVariable import GenFdsGlobalVariable
from io import BytesIO
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/GenFds/RuleComplexFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
##
# Import Modules
#
from __future__ import absolute_import
from . import Rule
from CommonDataClass.FdfClass import RuleComplexFileClassObject

Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/GenFds/RuleSimpleFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
##
# Import Modules
#
from __future__ import absolute_import
from . import Rule
from CommonDataClass.FdfClass import RuleSimpleFileClassObject

Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/GenFds/Section.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/GenFds/UiSection.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
##
# Import Modules
#
from __future__ import absolute_import
from . import Section
from .Ffs import Ffs
import subprocess
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/GenFds/VerSection.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
##
# Import Modules
#
from __future__ import absolute_import
from .Ffs import Ffs
from . import Section
import Common.LongFilePathOs as os
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/GenFds/Vtf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#

#====================================== External Libraries ========================================
from __future__ import print_function
import optparse
import Common.LongFilePathOs as os
import re
Expand Down
1 change: 0 additions & 1 deletion BaseTools/Source/Python/Pkcs7Sign/Pkcs7Sign.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
'''
Pkcs7Sign
'''
from __future__ import print_function

import os
import sys
Expand Down
Loading

0 comments on commit 487062c

Please sign in to comment.