Skip to content

Commit fc503ee

Browse files
committed
Minor update of doctest
1 parent ede662e commit fc503ee

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

extra/dbwire/firebird.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,18 @@ def _b2i_signed(b):
341341
return n
342342

343343
def _scaled(n, scale):
344-
# integer n represents n * 10**scale (scale <= 0); render as an exact decimal string
344+
"""
345+
integer n represents n * 10**scale (scale <= 0); render as an exact decimal string
346+
347+
>>> _scaled(1234, -2)
348+
'12.34'
349+
>>> _scaled(-5, -2)
350+
'-0.05'
351+
>>> _scaled(5, -4)
352+
'0.0005'
353+
>>> _scaled(7, 0)
354+
'7'
355+
"""
345356
if scale >= 0:
346357
return str(n * (10 ** scale))
347358
digits = "%0*d" % (-scale + 1, abs(n))

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty import six
2121

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

0 commit comments

Comments
 (0)