mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-12 02:22:55 +00:00
Minor update of doctest
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user