HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: sport3497 (1034)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/CyberCP/lib/python3.10/site-packages/django/contrib/gis/__pycache__/ptr.cpython-310.pyc
o

�h �@sddlmZGdd�d�ZdS)�)�c_void_pc@sBeZdZdZdZeZdZeZ	e
dd��Zejdd��Zdd�Z
dS)�CPointerBasezz
    Base class for objects that have a pointer access property
    that controls access to the underlying C pointer.
    NcCs|jr|jS|�d|jj��)NzNULL %s pointer encountered.)�_ptr�null_ptr_exception_class�	__class__�__name__��self�r
�I/usr/local/CyberCP/lib/python3.10/site-packages/django/contrib/gis/ptr.py�ptrs

�zCPointerBase.ptrcCs.|dust||j�stdt|���||_dS)NzIncompatible pointer type: %s.)�
isinstance�ptr_type�	TypeError�typer)r	rr
r
rrs
c
CsB|jr|jrz	|�|j�WdStttfyYdSwdSdS)z9
        Free the memory used by the C++ object.
        N)�
destructorrr�AttributeError�ImportErrorrrr
r
r�__del__!s��zCPointerBase.__del__)r�
__module__�__qualname__�__doc__rrrrrr�propertyr�setterrr
r
r
rrs
	
rN)�ctypesrrr
r
r
r�<module>s