summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2013-02-27 19:48:28 +0200
committerPauli Virtanen <pav@iki.fi>2013-02-27 19:48:28 +0200
commit9d8722b5bc76ecb2fe74a8e8dd3a7b1c2c83985b (patch)
tree872da019ec9d4db1e8daffe84ab58000ddd6a2c5
parenta3bc1467dee14dd4726a83af2fb1a4cb89cbf53b (diff)
downloadnumpy-9d8722b5bc76ecb2fe74a8e8dd3a7b1c2c83985b.tar.gz
DOC: fix doc/source/conf.py to work with Python 3
-rw-r--r--doc/source/conf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py
index 0fb517961..7848bb6bc 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -45,7 +45,7 @@ version = re.sub(r'(\d+\.\d+)\.\d+(.*)', r'\1\2', numpy.__version__)
version = re.sub(r'(\.dev\d+).*?$', r'\1', version)
# The full version, including alpha/beta/rc tags.
release = numpy.__version__
-print version, release
+print("%s %s" % (version, release))
# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
@@ -283,7 +283,7 @@ for name in ['sphinx.ext.linkcode', 'numpydoc.linkcode']:
except ImportError:
pass
else:
- print "NOTE: linkcode extension not found -- no links to source generated"
+ print("NOTE: linkcode extension not found -- no links to source generated")
def linkcode_resolve(domain, info):
"""