From 43dc637aa1feb0b88c3a872e81c5148546cbb70a Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Tue, 22 Jan 2013 02:19:52 -0500
Subject: [PATCH] Py3 fix: don't use xrange in scan template.

---
 pyopencl/scan.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyopencl/scan.py b/pyopencl/scan.py
index 6d7af840..a6d69a3a 100644
--- a/pyopencl/scan.py
+++ b/pyopencl/scan.py
@@ -517,7 +517,7 @@ void ${name_prefix}_scan_intervals(
 
                 const index_type scan_types_per_int = ${scan_dtype.itemsize//4};
 
-                %for store_base in xrange(0, ints_to_store, ints_per_wg):
+                %for store_base in range(0, ints_to_store, ints_per_wg):
                     <%
 
                     # Observe that ints_to_store is divisible by the work group size already,
@@ -761,7 +761,7 @@ _IGNORED_WORDS = set("""
         4 8 32
 
         typedef for endfor if void while endwhile endfor endif else const printf
-        None return bool n char true false ifdef pycl_printf str xrange assert
+        None return bool n char true false ifdef pycl_printf str range assert
         np iinfo max itemsize __packed__ struct restrict
 
         set iteritems len setdefault
-- 
GitLab