Minor patch

This commit is contained in:
Miroslav Stampar 2026-02-17 22:26:22 +01:00
parent 0b5eb377c0
commit dbe45a477b
3 changed files with 8 additions and 4 deletions

View file

@ -5,7 +5,6 @@ Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org)
See the file 'LICENSE' for copying permission
"""
import builtins
import codecs
import collections
import difflib
@ -179,6 +178,11 @@ def dirtyPatches():
et.parse = _safe_parse
et._patched = True
try:
import builtins
except ImportError:
import __builtin__ as builtins
if "enumerate" in difflib.__dict__ and difflib.enumerate is not builtins.enumerate:
difflib.enumerate = builtins.enumerate

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.2.15"
VERSION = "1.10.2.16"
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)