1
0
mirror of https://github.com/django/django.git synced 2025-10-26 23:26:08 +00:00

Fixed #25932 -- Made predicates of OGRGeometry return bool instead of int.

This commit is contained in:
Sergey Fedoseev
2015-12-14 09:33:15 +05:00
committed by Tim Graham
parent cd0ba8053d
commit a6c803a2e3
2 changed files with 43 additions and 1 deletions

View File

@@ -26,7 +26,7 @@ def pnt_func(f):
def topology_func(f):
f.argtypes = [c_void_p, c_void_p]
f.restype = c_int
f.errchck = bool
f.errcheck = lambda result, func, cargs: bool(result)
return f
# ### OGR_G ctypes function prototypes ###