Skip to content
Snippets Groups Projects
Commit 8432c155 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Py3 print fix

parent c4a232e0
No related branches found
No related tags found
No related merge requests found
"""UI for kernel creation."""
from __future__ import division
from __future__ import absolute_import
import six
from six.moves import range
from six.moves import zip
from __future__ import division, absolute_import, print_function
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner"
......@@ -36,6 +32,9 @@ from loopy.kernel.data import (
import islpy as isl
from islpy import dim_type
import six
from six.moves import range, zip
import re
import sys
......@@ -904,9 +903,10 @@ def guess_arg_shape_if_requested(kernel, default_order):
armap.access_range, i) + 1,
constants_only=False)))
except:
print>>sys.stderr, "While trying to find shape axis %d of "\
"argument '%s', the following " \
"exception occurred:" % (i, arg.name)
print("While trying to find shape axis %d of "
"argument '%s', the following "
"exception occurred:" % (i, arg.name),
file=sys.stderr)
raise
shape = tuple(shape)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment