diff options
author | Carsey, Jaben </o=Intel/ou=Americas01/cn=Workers/cn=Carsey, Jaben> | 2018-04-13 08:02:10 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-04-17 20:49:32 +0800 |
commit | 128d435f5e572733ab2649c4494f5d4f786b6f6b (patch) | |
tree | 67c27162da6af724a8d93da66946971c3cb1c33b /BaseTools/Source/Python/Rsa2048Sha256Sign | |
parent | 72fbe88d7290cfc4196658898ea8c5e28d539502 (diff) | |
download | edk2-128d435f5e572733ab2649c4494f5d4f786b6f6b.zip edk2-128d435f5e572733ab2649c4494f5d4f786b6f6b.tar.gz edk2-128d435f5e572733ab2649c4494f5d4f786b6f6b.tar.bz2 |
BaseTools: fix None comparisons
when comparing a list/string against None and empty, just compare the object.
when comparing against None, dont use !=, ==, <>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Rsa2048Sha256Sign')
-rw-r--r-- | BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256GenerateKeys.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256GenerateKeys.py b/BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256GenerateKeys.py index 95a6369..9711de8 100644 --- a/BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256GenerateKeys.py +++ b/BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256GenerateKeys.py @@ -9,7 +9,7 @@ # on STDOUT.
# This tool has been tested with OpenSSL 1.0.1e 11 Feb 2013
#
-# Copyright (c) 2013 - 2017, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at
@@ -89,7 +89,7 @@ if __name__ == '__main__': #
# Check for output file argument
#
- if args.OutputFile <> None:
+ if args.OutputFile is not None:
for Item in args.OutputFile:
#
# Save PEM filename and close output file
@@ -109,7 +109,7 @@ if __name__ == '__main__': #
# Check for input file argument
#
- if args.InputFile <> None:
+ if args.InputFile is not None:
for Item in args.InputFile:
#
# Save PEM filename and close input file
|