Skip to content

Commit 2ecb9c2

Browse files
committed
Getting rid of the codecs.open (python3.14)
1 parent 60049f2 commit 2ecb9c2

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

data/txt/sha256sums.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ c4bfb493a03caf84dd362aec7c248097841de804b7413d0e1ecb8a90c8550bc0 lib/core/readl
188188
d1bd70c1a55858495c727fbec91e30af267459c8f64d50fabf9e4ee2c007e920 lib/core/replication.py
189189
1d0f80b0193ac5204527bfab4bde1a7aee0f693fd008e86b4b29f606d1ef94f3 lib/core/revision.py
190190
d2eb8e4b05ac93551272b3d4abfaf5b9f2d3ac92499a7704c16ed0b4f200db38 lib/core/session.py
191-
4daabbeda821122febeaa7b3a0d1833888ae116741a35feb84e930f4c0013729 lib/core/settings.py
191+
d427603d8f6127013c3731eb364dfb0cc3fad15b2811125f823df77dea868357 lib/core/settings.py
192192
1c5eab9494eb969bc9ce118a2ea6954690c6851cbe54c18373c723b99734bf09 lib/core/shell.py
193193
4eea6dcf023e41e3c64b210cb5c2efc7ca893b727f5e49d9c924f076bb224053 lib/core/subprocessng.py
194194
cdd352e1331c6b535e780f6edea79465cb55af53aa2114dcea0e8bf382e56d1a lib/core/target.py
@@ -605,7 +605,7 @@ fd2084a132bf180dad5359e16dac8a29a73ebfd267f7c9423c814e7853060874 thirdparty/col
605605
4f4b2df6de9c0a8582150c59de2eb665b75548e5a57843fb6d504671ee6e4df3 thirdparty/fcrypt/fcrypt.py
606606
6a70ddcae455a3876a0f43b0850a19e2d9586d43f7b913dc1ffdf87e87d4bd3f thirdparty/fcrypt/__init__.py
607607
dbd1639f97279c76b07c03950e7eb61ed531af542a1bdbe23e83cb2181584fd9 thirdparty/identywaf/data.json
608-
5aa308d6173ad9e2a5006a719fdbfe8c20d7e14b6d70c04045b935e44caa96d0 thirdparty/identywaf/identYwaf.py
608+
e5c0b59577c30bb44c781d2f129580eaa003e46dcc4f307f08bc7f15e1555a2e thirdparty/identywaf/identYwaf.py
609609
edf23e7105539d700a1ae1bc52436e57e019b345a7d0227e4d85b6353ef535fa thirdparty/identywaf/__init__.py
610610
d846fdc47a11a58da9e463a948200f69265181f3dbc38148bfe4141fade10347 thirdparty/identywaf/LICENSE
611611
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 thirdparty/__init__.py

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from thirdparty import six
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.9.8.3"
22+
VERSION = "1.9.8.4"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

thirdparty/identywaf/identYwaf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@
6363
VERSION = "1.0.131"
6464
BANNER = r"""
6565
` __ __ `
66-
____ ___ ___ ____ ______ `| T T` __ __ ____ _____
66+
____ ___ ___ ____ ______ `| T T` __ __ ____ _____
6767
l j| \ / _]| \ | T`| | |`| T__T T / T| __|
6868
| T | \ / [_ | _ Yl_j l_j`| ~ |`| | | |Y o || l_
6969
| | | D YY _]| | | | | `|___ |`| | | || || _|
70-
j l | || [_ | | | | | `| !` \ / | | || ]
70+
j l | || [_ | | | | | `| !` \ / | | || ]
7171
|____jl_____jl_____jl__j__j l__j `l____/ ` \_/\_/ l__j__jl__j (%s)%s""".strip("\n") % (VERSION, "\n")
7272

7373
RAW, TEXT, HTTPCODE, SERVER, TITLE, HTML, URL = xrange(7)
@@ -338,7 +338,7 @@ def load_data():
338338
global WAF_RECOGNITION_REGEX
339339

340340
if os.path.isfile(DATA_JSON_FILE):
341-
with codecs.open(DATA_JSON_FILE, "rb", encoding="utf8") as f:
341+
with open(DATA_JSON_FILE, "r") as f:
342342
DATA_JSON.update(json.load(f))
343343

344344
WAF_RECOGNITION_REGEX = ""
@@ -371,7 +371,7 @@ def init():
371371
if os.path.isfile(options.proxy_file):
372372
print(colorize("[o] loading proxy list..."))
373373

374-
with codecs.open(options.proxy_file, "rb", encoding="utf8") as f:
374+
with open(options.proxy_file, "r") as f:
375375
proxies.extend(re.sub(r"\s.*", "", _.strip()) for _ in f.read().strip().split('\n') if _.startswith("http"))
376376
random.shuffle(proxies)
377377
else:

0 commit comments

Comments
 (0)