Commit 2453e3c3 authored by Martin v. Löwis's avatar Martin v. Löwis

Merge with upstream

--HG--
branch : distribute
extra : rebase_source : c2294f2326600bb24833e74265a03d19909f2f41
parents 15a0f215 bd900046
......@@ -197,6 +197,8 @@ class PackageIndex(Environment):
base = f.url # handle redirects
page = f.read()
charset = f.headers.get_param('charset') or 'latin-1'
page = page.decode(charset, "ignore")
f.close()
if url.startswith(self.index_url) and getattr(f,'code',None)!=404:
page = self.process_index(url, page)
......
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