summaryrefslogtreecommitdiff
path: root/numpy/doc/glossary.py
diff options
context:
space:
mode:
authorgfyoung <gfyoung17@gmail.com>2015-12-19 16:49:35 -0800
committergfyoung <gfyoung17@gmail.com>2015-12-19 16:50:09 -0800
commit8bc592fabf4a2b0bc76db996b1523330ba095be3 (patch)
treec8a1a549e5a093a9433fe9a50a6e0e8bb5358ab1 /numpy/doc/glossary.py
parente2bdaccba1a8691f9223b059b981b2890bb13b09 (diff)
downloadnumpy-8bc592fabf4a2b0bc76db996b1523330ba095be3.tar.gz
DOC: Use print only as function when print_function is imported from __future__
Closes gh-6863.
Diffstat (limited to 'numpy/doc/glossary.py')
-rw-r--r--numpy/doc/glossary.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/doc/glossary.py b/numpy/doc/glossary.py
index 9dacd1cb5..4a3238491 100644
--- a/numpy/doc/glossary.py
+++ b/numpy/doc/glossary.py
@@ -109,7 +109,7 @@ Glossary
>>> def log(f):
... def new_logging_func(*args, **kwargs):
- ... print "Logging call with parameters:", args, kwargs
+ ... print("Logging call with parameters:", args, kwargs)
... return f(*args, **kwargs)
...
... return new_logging_func
@@ -185,7 +185,7 @@ Glossary
It is often used in combintion with ``enumerate``::
>>> keys = ['a','b','c']
>>> for n, k in enumerate(keys):
- ... print "Key %d: %s" % (n, k)
+ ... print("Key %d: %s" % (n, k))
...
Key 0: a
Key 1: b
@@ -315,7 +315,7 @@ Glossary
... color = 'blue'
...
... def paint(self):
- ... print "Painting the city %s!" % self.color
+ ... print("Painting the city %s!" % self.color)
...
>>> p = Paintbrush()
>>> p.color = 'red'