Skip to content

Commit

Permalink
update docs/extensions/fancy_include.py with git_cast_file2repos.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Müller committed Oct 3, 2017
1 parent 5e86582 commit a6c5106
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# include extenstions
sys.path.append(op.abspath('extensions'))

# Mock all dependencies of qpimage
# Mock all dependencies
install_requires = ["numpy", "scipy", "scipy.interpolate",
"scipy.ndimage"]

Expand Down
4 changes: 2 additions & 2 deletions docs/extensions/fancy_include.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
will display the doc string formatted with the first line as a
heading, a code block with line numbers, and the image file.
"""

import io
import os.path as op

from docutils.statemachine import ViewList
Expand All @@ -44,7 +44,7 @@ def run(self):
path = self.state.document.settings.env.config.fancy_include_path
full_path = op.join(path, self.arguments[0])

with open(full_path, "r") as myfile:
with io.open(full_path, "r") as myfile:
text = myfile.read()

source = text.split('"""')
Expand Down

0 comments on commit a6c5106

Please sign in to comment.