File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -341,7 +341,18 @@ def _b2i_signed(b):
341341 return n
342342
343343def _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 ))
Original file line number Diff line number Diff line change 2020from thirdparty import six
2121
2222# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23- VERSION = "1.10.8.5 "
23+ VERSION = "1.10.8.6 "
2424TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2525TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2626VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
You can’t perform that action at this time.
0 commit comments