mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-07-29 04:24:34 +00:00
Minor refactoring
This commit is contained in:
parent
1363f26367
commit
ec4e49d771
8 changed files with 9 additions and 9 deletions
|
|
@ -221,7 +221,7 @@ class Enumeration(GenericEnumeration):
|
|||
|
||||
if colList:
|
||||
table = {}
|
||||
table[safeSQLIdentificatorNaming(tbl)] = dict(map(lambda x: (x, None), colList))
|
||||
table[safeSQLIdentificatorNaming(tbl)] = dict((_, None) for _ in colList)
|
||||
kb.data.cachedColumns[safeSQLIdentificatorNaming(conf.db)] = table
|
||||
continue
|
||||
|
||||
|
|
|
|||
|
|
@ -275,7 +275,7 @@ class Databases:
|
|||
values = filter(None, arrayizeValue(values))
|
||||
|
||||
if len(values) > 0 and not isListLike(values[0]):
|
||||
values = map(lambda x: (dbs[0], x), values)
|
||||
values = ((dbs[0], _) for _ in values)
|
||||
|
||||
for db, table in filterPairValues(values):
|
||||
db = safeSQLIdentificatorNaming(db)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue