Skip to content

Commit 78ac42c

Browse files
committed
Minor refactoring
1 parent 009f137 commit 78ac42c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lib/core/dump.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def lister(self, header, elements, content_type=None, sort=True):
140140
try:
141141
elements = set(elements)
142142
elements = list(elements)
143-
elements.sort(key=lambda x: x.lower() if isinstance(x, basestring) else x)
143+
elements.sort(key=lambda _: _.lower() if isinstance(_, basestring) else _)
144144
except:
145145
pass
146146

@@ -191,7 +191,7 @@ def userSettings(self, header, userSettings, subHeader, content_type=None):
191191
userSettings = userSettings[0]
192192

193193
users = userSettings.keys()
194-
users.sort(key=lambda x: x.lower() if isinstance(x, basestring) else x)
194+
users.sort(key=lambda _: _.lower() if isinstance(_, basestring) else _)
195195

196196
if conf.api:
197197
self._write(userSettings, content_type=content_type)
@@ -285,7 +285,7 @@ def dbTableColumns(self, tableColumns, content_type=None):
285285
colType = None
286286

287287
colList = columns.keys()
288-
colList.sort(key=lambda x: x.lower() if isinstance(x, basestring) else x)
288+
colList.sort(key=lambda _: _.lower() if isinstance(_, basestring) else _)
289289

290290
for column in colList:
291291
colType = columns[column]
@@ -377,7 +377,7 @@ def dbTablesCount(self, dbTables):
377377
if count is None:
378378
count = "Unknown"
379379

380-
tables.sort(key=lambda x: x.lower() if isinstance(x, basestring) else x)
380+
tables.sort(key=lambda _: _.lower() if isinstance(_, basestring) else _)
381381

382382
for table in tables:
383383
blank1 = " " * (maxlength1 - len(normalizeUnicode(table) or unicode(table)))

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.1.12.29"
22+
VERSION = "1.1.12.30"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ d2cdb9e832e18a81e936ca3348144b16 lib/controller/handler.py
3434
a73da01cee9d00ba385b05adc4903037 lib/core/decorators.py
3535
d3ed5f9baa074df33390d33164d9d8b5 lib/core/defaults.py
3636
1c428d1b036ff81b459121a0e57925c9 lib/core/dicts.py
37-
956be8ca65c7f04f08c6f2dce710b3b2 lib/core/dump.py
37+
0ad5a563bb89f5961d3aa17e935fb49f lib/core/dump.py
3838
8a29770c1d525edc27b6f82317183103 lib/core/enums.py
3939
9d2dede53d2f427f940c1b8f00b6e7a2 lib/core/exception.py
4040
5fb9aaf874daa47ea2b672a22740e56b lib/core/__init__.py
@@ -46,7 +46,7 @@ f872699e948d0692ce11b54781da814c lib/core/log.py
4646
760d9df2a27ded29109b390ab202e72d lib/core/replication.py
4747
a2466b62e67f8b31736bac4dac590e51 lib/core/revision.py
4848
02d4762140a72fd44668d3dab5eabda9 lib/core/session.py
49-
686323f03ca4e5878cdb1ddfcad43f68 lib/core/settings.py
49+
5053df5f535a0cc8da2192a7b26887dd lib/core/settings.py
5050
35bffbad762eb9e03db9e93b1c991103 lib/core/shell.py
5151
a59ec28371ae067a6fdd8f810edbee3d lib/core/subprocessng.py
5252
d93501771b41315f9fb949305b6ed257 lib/core/target.py

0 commit comments

Comments
 (0)