Trivial update of doctests

This commit is contained in:
Miroslav Stampar 2021-02-08 11:46:19 +01:00
parent 3724a53466
commit af3b79ff8b
3 changed files with 5 additions and 1 deletions

View File

@ -3024,6 +3024,8 @@ def getPublicTypeMembers(type_, onlyValues=False):
>>> [_ for _ in getPublicTypeMembers(OS, True)]
['Linux', 'Windows']
>>> [_ for _ in getPublicTypeMembers(PAYLOAD.TECHNIQUE, True)]
[1, 2, 3, 4, 5, 6]
"""
retVal = []

View File

@ -25,6 +25,8 @@ def cachedmethod(f):
>>> __ = cachedmethod(lambda _: _)
>>> __(1)
1
>>> __(1)
1
>>> __ = cachedmethod(lambda *args, **kwargs: args[0])
>>> __(2)
2

View File

@ -18,7 +18,7 @@ from lib.core.enums import OS
from thirdparty.six import unichr as _unichr
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.5.2.7"
VERSION = "1.5.2.8"
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)