diff options
author | gfyoung <gfyoung17@gmail.com> | 2015-12-19 16:49:35 -0800 |
---|---|---|
committer | gfyoung <gfyoung17@gmail.com> | 2015-12-19 16:50:09 -0800 |
commit | 8bc592fabf4a2b0bc76db996b1523330ba095be3 (patch) | |
tree | c8a1a549e5a093a9433fe9a50a6e0e8bb5358ab1 /tools | |
parent | e2bdaccba1a8691f9223b059b981b2890bb13b09 (diff) | |
download | numpy-8bc592fabf4a2b0bc76db996b1523330ba095be3.tar.gz |
DOC: Use print only as function when print_function is imported from __future__
Closes gh-6863.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/swig/test/testFortran.py | 2 | ||||
-rw-r--r-- | tools/win32build/misc/x86analysis.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/swig/test/testFortran.py b/tools/swig/test/testFortran.py index be4134d4e..c77d728e9 100644 --- a/tools/swig/test/testFortran.py +++ b/tools/swig/test/testFortran.py @@ -29,7 +29,7 @@ class FortranTestCase(unittest.TestCase): # commenting it out. --WFS # def testSecondElementContiguous(self): # "Test Fortran matrix initialized from reshaped default array" - # print >>sys.stderr, self.typeStr, "... ", + # print(self.typeStr, "... ", end="", file=sys.stderr) # second = Fortran.__dict__[self.typeStr + "SecondElement"] # matrix = np.arange(9).reshape(3, 3).astype(self.typeCode) # self.assertEquals(second(matrix), 3) diff --git a/tools/win32build/misc/x86analysis.py b/tools/win32build/misc/x86analysis.py index 39b7cca79..0b5586406 100644 --- a/tools/win32build/misc/x86analysis.py +++ b/tools/win32build/misc/x86analysis.py @@ -148,9 +148,9 @@ def analyse(filename): sse3 = has_sse3(inst) #mmx = has_mmx(inst) #ppro = has_ppro(inst) - #print sse - #print sse2 - #print sse3 + #print(sse) + #print(sse2) + #print(sse3) print("SSE3 inst %d" % cntset(sse3)) print("SSE2 inst %d" % cntset(sse2)) print("SSE inst %d" % cntset(sse)) |