Minor update of doctest

This commit is contained in:
Miroslav Štampar
2026-08-04 23:38:10 +02:00
parent ede662eca6
commit fc503ee8d5
2 changed files with 13 additions and 2 deletions
+12 -1
View File
@@ -341,7 +341,18 @@ def _b2i_signed(b):
return n
def _scaled(n, scale):
# integer n represents n * 10**scale (scale <= 0); render as an exact decimal string
"""
integer n represents n * 10**scale (scale <= 0); render as an exact decimal string
>>> _scaled(1234, -2)
'12.34'
>>> _scaled(-5, -2)
'-0.05'
>>> _scaled(5, -4)
'0.0005'
>>> _scaled(7, 0)
'7'
"""
if scale >= 0:
return str(n * (10 ** scale))
digits = "%0*d" % (-scale + 1, abs(n))
+1 -1
View File
@@ -20,7 +20,7 @@ from lib.core.enums import OS
from thirdparty import six
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.10.8.5"
VERSION = "1.10.8.6"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)