summaryrefslogtreecommitdiff
path: root/utests/utest_generator.py
diff options
context:
space:
mode:
authorRebecca N. Palmer <rebecca_palmer@zoho.com>2015-04-29 11:26:41 +0100
committerZhigang Gong <zhigang.gong@intel.com>2015-04-30 10:30:50 +0800
commit2b0208daa72e271a7b6c7374a6ae744075259d13 (patch)
tree3d96529bf2889b546263d06279ce164ccd633900 /utests/utest_generator.py
parentd2a47648d8d28665dafbe7e78172492a8c94e949 (diff)
downloadbeignet-2b0208daa72e271a7b6c7374a6ae744075259d13.tar.gz
Allow building with Python 3
Make the build scripts work in both Python 2 and Python 3. (CMake prefers Python 2 if both are available, but will use Python 3 if only it is installed.) Signed-off-by: Rebecca Palmer <rebecca_palmer@zoho.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'utests/utest_generator.py')
-rw-r--r--utests/utest_generator.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/utests/utest_generator.py b/utests/utest_generator.py
index 510c41a8..7d2d3a06 100644
--- a/utests/utest_generator.py
+++ b/utests/utest_generator.py
@@ -1,4 +1,5 @@
#!/usr/bin/python
+from __future__ import print_function
import os,sys,re
FLT_MAX_POSI='0x1.fffffep127f'
@@ -326,7 +327,7 @@ which can print more values and information to assist debuging the issue.
file_object.close()
def nameForCmake(self,content,namesuffix):
- print("generated/%s_%s.cpp"%(self.fileName,namesuffix)),
+ print("generated/%s_%s.cpp"%(self.fileName,namesuffix),end=" ")
def utestFunc(self,index):
funcLines=[]