X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2FUPT%2FCore%2FPackageFile.py;h=ec6f5503eaad39756894c329f87432e763d17475;hp=5fafd85bffbf5107a721b5c9b1913b9d0242a45e;hb=4231a8193ec0d52df7e0a101d96c51b1a2b7a996;hpb=05a32984ab799a564e2eeb7dff128fe0992910d8 diff --git a/BaseTools/Source/Python/UPT/Core/PackageFile.py b/BaseTools/Source/Python/UPT/Core/PackageFile.py index 5fafd85bff..ec6f5503ea 100644 --- a/BaseTools/Source/Python/UPT/Core/PackageFile.py +++ b/BaseTools/Source/Python/UPT/Core/PackageFile.py @@ -56,7 +56,7 @@ class PackageFile: ExtraData="%s (%s)" % (FileName, str(Xstr))) BadFile = self._ZipFile.testzip() - if BadFile != None: + if BadFile is not None: Logger.Error("PackagingTool", FILE_CHECKSUM_FAILURE, ExtraData="[%s] in %s" % (BadFile, FileName))