diff options
author | Pauli Virtanen <pav@iki.fi> | 2010-07-17 15:15:15 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2010-07-17 15:15:15 +0000 |
commit | 6f20d1e7650fbb3ad61855ca5d85dff0aafe2f72 (patch) | |
tree | 4b7381747f6219f982a92e706ad39f74d5fa3773 /numpy/lib | |
parent | affa70a89ef0f23b1fd98a68c29ab6f5796746fb (diff) | |
download | numpy-6f20d1e7650fbb3ad61855ca5d85dff0aafe2f72.tar.gz |
BUG: core: use PyCapsule objects only on Python >= 3.0, stay with PyCObjects on Python 2.x
Diffstat (limited to 'numpy/lib')
-rw-r--r-- | numpy/lib/type_check.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/type_check.py b/numpy/lib/type_check.py index 5db65a3c5..24701574a 100644 --- a/numpy/lib/type_check.py +++ b/numpy/lib/type_check.py @@ -620,7 +620,7 @@ def datetime_data(dtype): ('events', ctypes.c_int)] import sys - if sys.version_info[:2] >= (2,7): + if sys.version_info[:2] >= (3, 0): func = ctypes.pythonapi.PyCapsule_GetPointer func.argtypes = [ctypes.py_object, ctypes.c_char_p] func.restype = ctypes.c_void_p |