#524: Open intersphinx inventories in binary mode on Windows, since version 2 contains zlib-compressed data.

This commit is contained in:
Georg Brandl 2010-09-17 09:54:28 +02:00
parent c117b8524f
commit 81bb0cd8d1
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,9 @@
Release 1.0.4 (in development)
==============================
* #524: Open intersphinx inventories in binary mode on Windows,
since version 2 contains zlib-compressed data.
* #513: Allow giving non-local URIs for JavaScript files, e.g.
in the JSMath extension.

View File

@ -109,7 +109,7 @@ def fetch_inventory(app, uri, inv):
if inv.find('://') != -1:
f = urllib2.urlopen(inv)
else:
f = open(path.join(app.srcdir, inv))
f = open(path.join(app.srcdir, inv), 'rb')
except Exception, err:
app.warn('intersphinx inventory %r not fetchable due to '
'%s: %s' % (inv, err.__class__, err))