def check_cs_ptr(result, func, cargs):
    "Error checking on routines that return Geometries."
    if not result:
        raise GEOSException(func.__name__ % 'Error encountered checking Coordinate Sequence returned from GEOS C function "%s".')
    return result
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/contrib/gis/geos/prototypes/coordseq.py/check_cs_ptr/swapped operands of `%`