From a7eb3c7452afabde4cc69a85d8e1e5145ce05412 Mon Sep 17 00:00:00 2001 From: Gustavo Serra Scalet Date: Fri, 30 Sep 2016 15:24:28 -0300 Subject: [PATCH] Fix test code on cpuinfo's main function Due to future print import (py3k style), the commented code should also have the strings enclosed with parentheses or else it'll break. --- numpy/distutils/cpuinfo.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/numpy/distutils/cpuinfo.py b/numpy/distutils/cpuinfo.py index 03860c1517cc..dba5a3298814 100644 --- a/numpy/distutils/cpuinfo.py +++ b/numpy/distutils/cpuinfo.py @@ -681,13 +681,13 @@ def _has_3dnowext(self): # cpu.is_Intel() # cpu.is_Alpha() # -# print 'CPU information:', +# print('CPU information:'), # for name in dir(cpuinfo): # if name[0]=='_' and name[1]!='_': # r = getattr(cpu,name[1:])() # if r: # if r!=1: -# print '%s=%s' %(name[1:],r), +# print('%s=%s' %(name[1:],r)) # else: -# print name[1:], -# print +# print(name[1:]), +# print()