X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2FGenFds%2FDepexSection.py;h=ef30a2f083c6624025f5e2789ec2f953501b53c8;hb=4231a8193ec0d52df7e0a101d96c51b1a2b7a996;hp=1992d2abd8070d5d7676a42e59a0843a0e9a7621;hpb=37de70b764200718cc39a21abc491c335e3da7b3;p=mirror_edk2.git diff --git a/BaseTools/Source/Python/GenFds/DepexSection.py b/BaseTools/Source/Python/GenFds/DepexSection.py index 1992d2abd8..ef30a2f083 100644 --- a/BaseTools/Source/Python/GenFds/DepexSection.py +++ b/BaseTools/Source/Python/GenFds/DepexSection.py @@ -86,7 +86,7 @@ class DepexSection (DepexSectionClassObject): for Exp in ExpList: if Exp.upper() not in ('AND', 'OR', 'NOT', 'TRUE', 'FALSE', 'SOR', 'BEFORE', 'AFTER', 'END'): GuidStr = self.__FindGuidValue(Exp) - if GuidStr == None: + if GuidStr is None: EdkLogger.error("GenFds", RESOURCE_NOT_AVAILABLE, "Depex GUID %s could not be found in build DB! (ModuleName: %s)" % (Exp, ModuleName))