From bb726ca19f434f5055c0efceefe48d89469fcbbe Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Sat, 6 Apr 2013 13:25:26 -0600 Subject: 2to3: Apply `print` fixer. Add `print_function` to all `from __future__ import ...` statements and use the python3 print function syntax everywhere. Closes #3078. --- doc/numpybook/comparison/weave/inline.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/numpybook/comparison/weave/inline.py') diff --git a/doc/numpybook/comparison/weave/inline.py b/doc/numpybook/comparison/weave/inline.py index 9c134b231..3906553ed 100644 --- a/doc/numpybook/comparison/weave/inline.py +++ b/doc/numpybook/comparison/weave/inline.py @@ -1,4 +1,4 @@ -from __future__ import division, absolute_import +from __future__ import division, absolute_import, print_function from scipy import weave from numpy import rand, zeros_like @@ -40,8 +40,8 @@ def arr(a): return b a = [None]*10 -print example1(a) -print a +print(example1(a)) +print(a) a = rand(512,512) b = arr(a) -- cgit v1.2.1