diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-04-06 13:25:26 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-04-06 13:25:26 -0600 |
commit | bb726ca19f434f5055c0efceefe48d89469fcbbe (patch) | |
tree | 889782afaf67fd5acb5f222969251871c0c46e5a /tools/win32build | |
parent | 7441fa50523f5b4a16c854bf004d675e5bd86ab8 (diff) | |
download | numpy-bb726ca19f434f5055c0efceefe48d89469fcbbe.tar.gz |
2to3: Apply `print` fixer.
Add `print_function` to all `from __future__ import ...` statements
and use the python3 print function syntax everywhere.
Closes #3078.
Diffstat (limited to 'tools/win32build')
-rw-r--r-- | tools/win32build/build.py | 4 | ||||
-rw-r--r-- | tools/win32build/doall.py | 2 | ||||
-rw-r--r-- | tools/win32build/misc/x86analysis.py | 16 | ||||
-rw-r--r-- | tools/win32build/prepare_bootstrap.py | 2 |
4 files changed, 12 insertions, 12 deletions
diff --git a/tools/win32build/build.py b/tools/win32build/build.py index dc12e807d..782ef3d5e 100644 --- a/tools/win32build/build.py +++ b/tools/win32build/build.py @@ -8,7 +8,7 @@ TODO: - make the config configurable with a file """ -from __future__ import division +from __future__ import division, print_function import sys import subprocess @@ -51,7 +51,7 @@ def write_site_cfg(arch): f.close() def build(arch, pyver): - print "Building numpy binary for python %s, arch is %s" % (get_python_exec(pyver), arch) + print("Building numpy binary for python %s, arch is %s" % (get_python_exec(pyver), arch)) get_clean() write_site_cfg(arch) diff --git a/tools/win32build/doall.py b/tools/win32build/doall.py index e9866122e..fbc794db5 100644 --- a/tools/win32build/doall.py +++ b/tools/win32build/doall.py @@ -1,4 +1,4 @@ -from __future__ import division +from __future__ import division, print_function import subprocess import os diff --git a/tools/win32build/misc/x86analysis.py b/tools/win32build/misc/x86analysis.py index e5eb886b4..39b7cca79 100644 --- a/tools/win32build/misc/x86analysis.py +++ b/tools/win32build/misc/x86analysis.py @@ -5,7 +5,7 @@ # checking the assembly for instructions specific to sse, etc... Obviously, # this won't work all the times (for example, if some instructions are used # only after proper detection of the running CPU, this will give false alarm). -from __future__ import division +from __future__ import division, print_function import sys import re @@ -139,10 +139,10 @@ def main(): analyse(filename) def analyse(filename): - print get_vendor_string() - print "Getting instructions..." + print(get_vendor_string()) + print("Getting instructions...") inst = disassemble(filename) - print "Counting instructions..." + print("Counting instructions...") sse = has_sse(inst) sse2 = has_sse2(inst) sse3 = has_sse3(inst) @@ -151,10 +151,10 @@ def analyse(filename): #print sse #print sse2 #print sse3 - print "SSE3 inst %d" % cntset(sse3) - print "SSE2 inst %d" % cntset(sse2) - print "SSE inst %d" % cntset(sse) - print "Analysed %d instructions" % len(inst) + print("SSE3 inst %d" % cntset(sse3)) + print("SSE2 inst %d" % cntset(sse2)) + print("SSE inst %d" % cntset(sse)) + print("Analysed %d instructions" % len(inst)) if __name__ == '__main__': main() diff --git a/tools/win32build/prepare_bootstrap.py b/tools/win32build/prepare_bootstrap.py index d5822b83e..3984032fd 100644 --- a/tools/win32build/prepare_bootstrap.py +++ b/tools/win32build/prepare_bootstrap.py @@ -1,4 +1,4 @@ -from __future__ import division +from __future__ import division, print_function import os import subprocess |