X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2FBPDG%2FGenVpd.py;h=887240e94cb4147bd25bafe0d1e1a3977f9f13b0;hb=4231a8193ec0d52df7e0a101d96c51b1a2b7a996;hp=cdfc420c66f73fbb5d2f64ff409e58432832c102;hpb=05a32984ab799a564e2eeb7dff128fe0992910d8;p=mirror_edk2.git diff --git a/BaseTools/Source/Python/BPDG/GenVpd.py b/BaseTools/Source/Python/BPDG/GenVpd.py index cdfc420c66..887240e94c 100644 --- a/BaseTools/Source/Python/BPDG/GenVpd.py +++ b/BaseTools/Source/Python/BPDG/GenVpd.py @@ -381,7 +381,7 @@ class GenVPD : # Delete useless lines while (True) : try : - if (self.FileLinesList[count] == None) : + if (self.FileLinesList[count] is None) : del(self.FileLinesList[count]) else : count += 1 @@ -398,7 +398,7 @@ class GenVPD : # Process the pcds one by one base on the pcd's value and size count = 0 for line in self.FileLinesList: - if line != None : + if line is not None : PCD = PcdEntry(line[0], line[1], line[2], line[3], line[4],line[5], self.InputFileName) # Strip the space char PCD.PcdCName = PCD.PcdCName.strip(' ')