o
    ).h  ã                   @   sp   d Z ddlZddlZdd„ Ze ej¡dd„ ƒZe ej¡dd„ ƒZe ej¡d	d
„ ƒZe ej¡dd„ ƒZdS )a   
Wrapper for the builtin json module that ensures compliance with the JSON spec.

REST framework should always import this wrapper module in order to maintain
spec-compliant encoding/decoding. Support for non-standard features should be
handled by users at the renderer and parser layer.
é    Nc                 C   s   t dt| ƒ ƒ‚)Nz2Out of range float values are not JSON compliant: )Ú
ValueErrorÚrepr)Úo© r   úX/var/www/supernova/superenvnew/lib/python3.10/site-packages/rest_framework/utils/json.pyÚstrict_constant   s   r   c                  O   ó   |  dd¡ tj| i |¤ŽS ©NÚ	allow_nanF)Ú
setdefaultÚjsonÚdump©ÚargsÚkwargsr   r   r   r      ó   r   c                  O   r   r	   )r   r   Údumpsr   r   r   r   r      r   r   c                  O   ó   |  dt¡ tj| i |¤ŽS ©NÚparse_constant)r   r   r   Úloadr   r   r   r   r      r   r   c                  O   r   r   )r   r   r   Úloadsr   r   r   r   r   "   r   r   )	Ú__doc__Ú	functoolsr   r   Úwrapsr   r   r   r   r   r   r   r   Ú<module>   s    






