summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Pkcs7Sign
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/Pkcs7Sign
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/Pkcs7Sign')
-rw-r--r--BaseTools/Source/Python/Pkcs7Sign/Pkcs7Sign.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/BaseTools/Source/Python/Pkcs7Sign/Pkcs7Sign.py b/BaseTools/Source/Python/Pkcs7Sign/Pkcs7Sign.py
index 47677cc28e..c48425d0cd 100644
--- a/BaseTools/Source/Python/Pkcs7Sign/Pkcs7Sign.py
+++ b/BaseTools/Source/Python/Pkcs7Sign/Pkcs7Sign.py
@@ -140,11 +140,11 @@ if __name__ == '__main__':
try:
if args.MonotonicCountStr.upper().startswith('0X'):
- args.MonotonicCountValue = (long)(args.MonotonicCountStr, 16)
+ args.MonotonicCountValue = (int)(args.MonotonicCountStr, 16)
else:
- args.MonotonicCountValue = (long)(args.MonotonicCountStr)
+ args.MonotonicCountValue = (int)(args.MonotonicCountStr)
except:
- args.MonotonicCountValue = (long)(0)
+ args.MonotonicCountValue = (int)(0)
if args.Encode:
#
@@ -250,9 +250,9 @@ if __name__ == '__main__':
sys.exit(1)
else:
if args.SignatureSizeStr.upper().startswith('0X'):
- SignatureSize = (long)(args.SignatureSizeStr, 16)
+ SignatureSize = (int)(args.SignatureSizeStr, 16)
else:
- SignatureSize = (long)(args.SignatureSizeStr)
+ SignatureSize = (int)(args.SignatureSizeStr)
if SignatureSize < 0:
print("ERROR: The value of option --signature-size can't be set to negative value!")
sys.exit(1)