Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r93638:3352216b0e57
Date: 2018-01-08 16:04 +0100
http://bitbucket.org/pypy/pypy/changeset/3352216b0e57/

Log:    Fix for python 3

diff --git a/lib_pypy/_ctypes/array.py b/lib_pypy/_ctypes/array.py
--- a/lib_pypy/_ctypes/array.py
+++ b/lib_pypy/_ctypes/array.py
@@ -12,8 +12,7 @@
         if cls == (_CData,): # this is the Array class defined below
             res._ffiarray = None
             return res
-        if not hasattr(res, '_length_') or not isinstance(res._length_,
-                                                          (int, long)):
+        if not hasattr(res, '_length_') or not isinstance(res._length_, int):
             raise AttributeError(
                 "class must define a '_length_' attribute, "
                 "which must be a positive integer")
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to