Merge pull request #1119 from hurricanehrndz/master

Decode string using utf-8
This commit is contained in:
adisbladis 2023-04-21 12:43:16 +12:00 committed by GitHub
commit 5ce42a0fb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,7 +78,7 @@ response = urllib.request.urlopen(req, context=context)
index = response.read()
parser = Pep503()
parser.feed(str(index))
parser.feed(str(index, "utf-8"))
if package_filename not in parser.sources:
print(
"The file %s has not be found in the index %s" % (package_filename, index_url)