Python 3 metaclass fix

This commit is contained in:
Mike Croucher 2015-03-04 03:08:15 +00:00
parent 35aec1c6d0
commit 273beca272

View file

@ -11,10 +11,11 @@ from functools import reduce
class Kern(Parameterized): class Kern(Parameterized,metaclass=KernCallsViaSlicerMeta):
#=========================================================================== #===========================================================================
# This adds input slice support. The rather ugly code for slicing can be # This adds input slice support. The rather ugly code for slicing can be
# found in kernel_slice_operations # found in kernel_slice_operations
# __mataclass__ is ignored in Python 3 - needs to be put in the function definiton
__metaclass__ = KernCallsViaSlicerMeta __metaclass__ = KernCallsViaSlicerMeta
#=========================================================================== #===========================================================================
_support_GPU=False _support_GPU=False