web/lib/django/contrib/gis/gdal/base.py
changeset 29 cc9b7e14412b
parent 0 0d40e90630ef
--- a/web/lib/django/contrib/gis/gdal/base.py	Wed May 19 17:43:59 2010 +0200
+++ b/web/lib/django/contrib/gis/gdal/base.py	Tue May 25 02:43:45 2010 +0200
@@ -24,7 +24,7 @@
     def _set_ptr(self, ptr):
         # Only allow the pointer to be set with pointers of the
         # compatible type or None (NULL).
-        if isinstance(ptr, int):
+        if isinstance(ptr, (int, long)):
             self._ptr = self.ptr_type(ptr)
         elif isinstance(ptr, (self.ptr_type, NoneType)):
             self._ptr = ptr