Commit 6edad161 authored by Dylan Baker's avatar Dylan Baker

gen_cl_store_tests.py: hybridize for python 2/3

Uses six.moves.range

Generates the same results before and after.
Signed-off-by: default avatarDylan Baker <dylanx.c.baker@intel.com>
Reviewed-by: Jordan Justen's avatarJordan Justen <jordan.l.justen@intel.com>
parent d5bb562c
......@@ -26,6 +26,8 @@
import os
import textwrap
from six.moves import range
from modules import utils
TYPES = ['char', 'uchar', 'short', 'ushort', 'int', 'uint', 'long', 'ulong', 'float', 'double']
......@@ -36,7 +38,8 @@ utils.safe_makedirs(dirName)
def gen_array(size):
return ' '.join([str(i) for i in xrange(size * 8)])
return ' '.join([str(i) for i in range(size * 8)])
def ext_req(type_name):
if type_name[:6] == "double":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment