Skip to content

Commit

Permalink
Use sphinx 1.6.2 (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller authored and hynek committed Jun 10, 2017
1 parent dd6306e commit cd87430
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

NAME = "doc2dash"
INSTALL_REQUIRES = [
"Sphinx==1.4.6",
"Sphinx==1.6.2",
"attrs==16.2.0",
"beautifulsoup4==4.5.1",
"click==6.6",
Expand Down
5 changes: 2 additions & 3 deletions src/doc2dash/parsers/intersphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import attr

from six import iteritems
from sphinx.ext.intersphinx import read_inventory_v2
from sphinx.ext.intersphinx import InventoryFile
from zope.interface import implementer

from . import types
Expand Down Expand Up @@ -68,9 +68,8 @@ def parse(self):
yield `ParserEntry`s.
"""
with open(os.path.join(self.doc_path, "objects.inv"), "rb") as inv_f:
inv_f.readline() # skip version line that is verified in detection
for pe in self._inv_to_entries(
read_inventory_v2(inv_f, "", os.path.join)
InventoryFile.load(inv_f, "", os.path.join)
): # this is what Guido gave us `yield from` for :-|
yield pe

Expand Down

0 comments on commit cd87430

Please sign in to comment.