Minor patch for python2

This commit is contained in:
Miroslav Štampar 2026-06-14 10:56:44 +02:00
parent 93d2439624
commit bc4ce6e44a
4 changed files with 11 additions and 4 deletions

View file

@ -280,6 +280,12 @@ else:
xrange = xrange
buffer = buffer
try:
RecursionError = RecursionError
except NameError:
# Note: patch for Python < 3.5 (RecursionError, a subclass of RuntimeError, was introduced in Python 3.5)
RecursionError = RuntimeError
def LooseVersion(version):
"""
>>> LooseVersion("1.0") == LooseVersion("1.0")

View file

@ -20,7 +20,7 @@ from lib.core.enums import OS
from thirdparty import six
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.10.6.98"
VERSION = "1.10.6.99"
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)