mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#524: Open intersphinx inventories in binary mode on Windows, since version 2 contains zlib-compressed data.
This commit is contained in:
parent
c117b8524f
commit
81bb0cd8d1
3
CHANGES
3
CHANGES
@ -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.
|
||||
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user