Skip to content

Commit

Permalink
Py3 fix for the PyPy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Aug 26, 2015
1 parent 64928f6 commit 03692f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyopencl/cffi_cl.py
Expand Up @@ -26,6 +26,7 @@
THE SOFTWARE.
"""

import six
from six.moves import map, range, zip

import warnings
Expand Down Expand Up @@ -479,7 +480,7 @@ class _ErrorRecord(object):

def __init__(self, msg='', code=0, routine=''):
self._routine = routine
assert isinstance(code, (int, long))
assert isinstance(code, six.integer_types)
self._code = code
self._what = msg

Expand Down

0 comments on commit 03692f8

Please sign in to comment.