Commit 42ebf5b7 authored by Jelmer Vernooij's avatar Jelmer Vernooij

Cope with non-utf-8 characters in README.

parent eb6fc2b8
Pipeline #58322 failed with stages
in 10 minutes and 59 seconds
......@@ -249,8 +249,9 @@ def guess_from_debian_copyright(path, trust_package):
def guess_from_readme(path, trust_package):
with open(path, 'r') as f:
with open(path, 'rb') as f:
for line in f:
line = line.decode('utf-8', 'replace')
if line.strip().startswith('git clone'):
line = line.strip()
url = line.split()[2]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment