From af3b79ff8bbdfbc9c96b200e0e3e4348f964558f Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 8 Feb 2021 11:46:19 +0100 Subject: [PATCH] Trivial update of doctests --- lib/core/common.py | 2 ++ lib/core/decorators.py | 2 ++ lib/core/settings.py | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index 53eca1f05..b7eb7f512 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -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 = [] diff --git a/lib/core/decorators.py b/lib/core/decorators.py index a7243f04a..33644e1de 100644 --- a/lib/core/decorators.py +++ b/lib/core/decorators.py @@ -25,6 +25,8 @@ def cachedmethod(f): >>> __ = cachedmethod(lambda _: _) >>> __(1) 1 + >>> __(1) + 1 >>> __ = cachedmethod(lambda *args, **kwargs: args[0]) >>> __(2) 2 diff --git a/lib/core/settings.py b/lib/core/settings.py index e33209eed..6eaae16b8 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty.six import unichr as _unichr # sqlmap version (...) -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)