Remove encoding keyword from json()

* Removed in Python 3.9

Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2024-03-02 20:12:43 +02:00
parent d93c3154ac
commit e13a62af84
No known key found for this signature in database
GPG Key ID: A12750536B5E7010

View File

@ -55,7 +55,7 @@ def scan_pkg(pkg, options):
content = fp.read() content = fp.read()
fp.close() fp.close()
cache = json.loads(content, encoding="ascii") cache = json.loads(content)
if cache[0] != 4: if cache[0] != 4:
output.eerror("Unknow cache format detected") output.eerror("Unknow cache format detected")