Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5584846

Browse files
committed
Minor refactoring
1 parent e84142b commit 5584846

3 files changed

Lines changed: 5 additions & 8 deletions

File tree

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.2.7.8"
22+
VERSION = "1.2.7.9"
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)

thirdparty/ansistrm/ansistrm.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,8 @@ def colorize(self, message, levelno):
145145
params.append('1')
146146

147147
if params and message:
148-
if message.lstrip() != message:
149-
prefix = re.search(r"\s+", message).group(0)
150-
message = message[len(prefix):]
151-
else:
152-
prefix = ""
148+
match = re.search(r"\A(\s+)", message)
149+
prefix = match.group(1) if match else ""
153150

154151
match = re.search(r"\[([A-Z ]+)\]", message) # log level
155152
if match:

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py
4848
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4949
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
5050
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
51-
21189972adee4e784a2ffad146550749 lib/core/settings.py
51+
4c026aa83372dded4cb70cbdb677fb81 lib/core/settings.py
5252
dd68a9d02fccb4fa1428b20e15b0db5d lib/core/shell.py
5353
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5454
95f04c1c1d8c3998d86e1bdf0e12771c lib/core/target.py
@@ -285,7 +285,7 @@ fd1bff6caefe5007444f7a0fabbc8ce9 tamper/space2mysqlblank.py
285285
929a2586dbb7b758a454eb09e13e5a73 tamper/versionedkeywords.py
286286
3aff4d344ebd4f38e033e73b63f84447 tamper/versionedmorekeywords.py
287287
ed1acafbac707bfa71c72f76b81c1bdd tamper/xforwardedfor.py
288-
0424227a228a2b5b53ad1d6df4240ddd thirdparty/ansistrm/ansistrm.py
288+
641fc9d8f1f8ccb4488f717668422c21 thirdparty/ansistrm/ansistrm.py
289289
d41d8cd98f00b204e9800998ecf8427e thirdparty/ansistrm/__init__.py
290290
8e775c25bc9e84891ad6fcb4f0005c23 thirdparty/beautifulsoup/beautifulsoup.py
291291
cb2e1fe7c404dff41a2ae9132828f532 thirdparty/beautifulsoup/__init__.py

0 commit comments

Comments
 (0)