summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/GenFds/AprioriSection.py
diff options
context:
space:
mode:
authorYunhua Feng <yunhuax.feng@intel.com>2018-10-10 11:00:31 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-10-13 09:50:42 +0800
commit8371d87412bc1dae454dcc570691fc0d63e710b4 (patch)
treefa1c0a276bfedde65ef3f28d129af4c00d9e2e98 /BaseTools/Source/Python/GenFds/AprioriSection.py
parent261eee25de664dcef2d99b6365b16c9bc444143f (diff)
downloadedk2-8371d87412bc1dae454dcc570691fc0d63e710b4.tar.gz
edk2-8371d87412bc1dae454dcc570691fc0d63e710b4.tar.bz2
edk2-8371d87412bc1dae454dcc570691fc0d63e710b4.zip
BaseTools: Rename long() to int()
Because the long() function was not exist in Python3. 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>
Diffstat (limited to 'BaseTools/Source/Python/GenFds/AprioriSection.py')
-rw-r--r--BaseTools/Source/Python/GenFds/AprioriSection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/GenFds/AprioriSection.py b/BaseTools/Source/Python/GenFds/AprioriSection.py
index aaa919d7a8..c50a0c5b02 100644
--- a/BaseTools/Source/Python/GenFds/AprioriSection.py
+++ b/BaseTools/Source/Python/GenFds/AprioriSection.py
@@ -96,7 +96,7 @@ class AprioriSection (AprioriSectionClassObject):
GuidPart = Guid.split('-')
- Buffer.write(pack('I', long(GuidPart[0], 16)))
+ Buffer.write(pack('I', int(GuidPart[0], 16)))
Buffer.write(pack('H', int(GuidPart[1], 16)))
Buffer.write(pack('H', int(GuidPart[2], 16)))