From e13a62af84458995ae5d18228cd4b9cc8916056c Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Sat, 2 Mar 2024 20:12:43 +0200 Subject: [PATCH] Remove encoding keyword from json() * Removed in Python 3.9 Signed-off-by: Alfred Wingate --- src/euscan/handlers/gnome.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/euscan/handlers/gnome.py b/src/euscan/handlers/gnome.py index e62478e..c5b1506 100644 --- a/src/euscan/handlers/gnome.py +++ b/src/euscan/handlers/gnome.py @@ -55,7 +55,7 @@ def scan_pkg(pkg, options): content = fp.read() fp.close() - cache = json.loads(content, encoding="ascii") + cache = json.loads(content) if cache[0] != 4: output.eerror("Unknow cache format detected")