Replacing deprecated has_key() with operator in (PEP8)

This commit is contained in:
Miroslav Stampar
2013-01-03 23:28:07 +01:00
parent e4a3c015e5
commit 1712603dce
5 changed files with 7 additions and 7 deletions

View File

@@ -145,7 +145,7 @@ class Enumeration(GenericEnumeration):
if retVal:
for table in retVal[0].values()[0]:
if not kb.data.cachedTables.has_key(db):
if db not in kb.data.cachedTables:
kb.data.cachedTables[db] = [table]
else:
kb.data.cachedTables[db].append(table)