From 8bc592fabf4a2b0bc76db996b1523330ba095be3 Mon Sep 17 00:00:00 2001 From: gfyoung Date: Sat, 19 Dec 2015 16:49:35 -0800 Subject: DOC: Use print only as function when print_function is imported from __future__ Closes gh-6863. --- numpy/doc/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/doc/misc.py') diff --git a/numpy/doc/misc.py b/numpy/doc/misc.py index 1709ad66d..e30caf0cb 100644 --- a/numpy/doc/misc.py +++ b/numpy/doc/misc.py @@ -86,7 +86,7 @@ Examples >>> np.sqrt(np.array([-1.])) FloatingPointError: invalid value encountered in sqrt >>> def errorhandler(errstr, errflag): - ... print "saw stupid error!" + ... print("saw stupid error!") >>> np.seterrcall(errorhandler) >>> j = np.seterr(all='call') -- cgit v1.2.1