diff -ur patsy-0.5.1/doc/conf.py patsy-0.5.1.conf/doc/conf.py
--- patsy-0.5.1/doc/conf.py 2021-07-01 14:43:43.978489944 +0200
+++ patsy-0.5.1.conf/doc/conf.py 2021-07-01 14:43:17.388064611 +0200
@@ -5,23 +5,23 @@
copyright = u'2011-2015, Nathaniel J. Smith'
import sys
-print "python exec:", sys.executable
-print "sys.path:", sys.path
+print("python exec:", sys.executable)
+print("sys.path:", sys.path)
try:
import numpy
- print "numpy: %s, %s" % (numpy.__version__, numpy.__file__)
+ print ("numpy: %s, %s" % (numpy.__version__, numpy.__file__))
except ImportError:
- print "no numpy"
+ print ("no numpy")
try:
import matplotlib
- print "matplotlib: %s, %s" % (matplotlib.__version__, matplotlib.__file__)
+ print("matplotlib: %s, %s" % (matplotlib.__version__, matplotlib.__file__))
except ImportError:
- print "no matplotlib"
+ print("no matplotlib")
try:
import IPython
- print "ipython: %s, %s" % (IPython.__version__, IPython.__file__)
+ print("ipython: %s, %s" % (IPython.__version__, IPython.__file__))
except ImportError:
- print "no ipython"
+ print("no ipython")
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
@@ -67,9 +67,9 @@
# Undocumented trick: if we def setup here in conf.py, it gets called just
# like an extension's setup function.
def setup(app):
- app.add_javascript("show-code.js")
- app.add_javascript("facebox.js")
- app.add_stylesheet("facebox.css")
+ app.add_js_file("show-code.js")
+ app.add_js_file("facebox.js")
+ app.add_css_file("facebox.css")
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']