diff options
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 05070b3ba..ecc575e89 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] >= (3,1): + if sys.version_info[:2] >= (2,7): func = ctypes.pythonapi.PyCapsule_GetPointer func.argtypes = [ctypes.py_object, ctypes.c_char_p] func.restype = ctypes.c_void_p |