Remove encoding keyword from json()
* Removed in Python 3.9 Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
		@@ -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")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user