summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Pkcs7Sign/Pkcs7Sign.py
diff options
context:
space:
mode:
authorYunhua Feng <yunhuax.feng@intel.com>2018-12-03 10:29:40 +0800
committerFeng, Bob C <bob.c.feng@intel.com>2019-02-01 11:09:18 +0800
commitaf881abc6537298feade1c0b01a2a77224635647 (patch)
treef7166d3a4dbf8604d418df17acf39b636b40b0aa /BaseTools/Source/Python/Pkcs7Sign/Pkcs7Sign.py
parent1d2aa01cdf4b853a79871bd13588c71a0eb3d601 (diff)
downloadedk2-af881abc6537298feade1c0b01a2a77224635647.tar.gz
edk2-af881abc6537298feade1c0b01a2a77224635647.tar.bz2
edk2-af881abc6537298feade1c0b01a2a77224635647.zip
BaseTools: replace long by int
replace long by int Because the long() was not exist in Python3 Cc: Bob Feng <bob.c.feng@intel.com> 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> Tested-by: Laszlo Ersek <lersek@redhat.com> Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Pkcs7Sign/Pkcs7Sign.py')
-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 a44781f2e8..c5c99d94ef 100644
--- a/BaseTools/Source/Python/Pkcs7Sign/Pkcs7Sign.py
+++ b/BaseTools/Source/Python/Pkcs7Sign/Pkcs7Sign.py
@@ -141,11 +141,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:
#
@@ -251,9 +251,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)