Minor Travis patch

This commit is contained in:
Miroslav Stampar 2019-05-09 13:36:50 +02:00
parent 3915b45665
commit 6010db56ee
2 changed files with 4 additions and 4 deletions

View File

@ -2265,7 +2265,7 @@ def average(values):
""" """
Computes the arithmetic mean of a list of numbers. Computes the arithmetic mean of a list of numbers.
>>> average([0.9, 0.9, 0.9, 1.0, 0.8, 0.9]) >>> round(average([0.9, 0.9, 0.9, 1.0, 0.8, 0.9]), 1)
0.9 0.9
""" """
@ -2278,8 +2278,8 @@ def stdev(values):
# Reference: http://www.goldb.org/corestats.html # Reference: http://www.goldb.org/corestats.html
>>> stdev([0.9, 0.9, 0.9, 1.0, 0.8, 0.9]) >>> round(stdev([0.9, 0.9, 0.9, 1.0, 0.8, 0.9]), 3)
0.06324555320336757 0.063
""" """
if not values or len(values) < 2: if not values or len(values) < 2:

View File

@ -18,7 +18,7 @@ from lib.core.enums import OS
from thirdparty import six from thirdparty import six
# sqlmap version (<major>.<minor>.<month>.<monthly commit>) # sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.3.5.66" VERSION = "1.3.5.67"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} 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) VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)