U
    Ha                     @   sF   d dl Zd dlZd dlmZ G dd dZG dd deZedZ dS )    N)
ModuleTypec                   @   sJ   e Zd ZdZeejeef ej	dddZ
eej	ej	edddZdS )	_CompactJSONz2Wrapper around json module that strips whitespace.)payloadreturnc                 C   s
   t | S )N)_jsonloads)r    r   6/tmp/pip-unpacked-wheel-4vz609l6/itsdangerous/_json.pyr   	   s    z_CompactJSON.loads)objkwargsr   c                 K   s&   | dd | dd tj| f|S )Nensure_asciiF
separators),:)
setdefaultr   dumps)r
   r   r   r   r	   r      s    z_CompactJSON.dumpsN)__name__
__module____qualname____doc__staticmethod_tUnionstrbytesAnyr   r   r   r   r   r	   r      s
   r   c                   @   s   e Zd ZeejdddZdS )DeprecatedJSON)itemr   c                 C   s"   dd l }|jdtdd tt|S )Nr   zxImporting 'itsdangerous.json' is deprecated and will be removed in ItsDangerous 2.1. Use Python's 'json' module instead.   )
stacklevel)warningswarnDeprecationWarninggetattrr   )selfr   r    r   r   r	   __getattribute__   s    zDeprecatedJSON.__getattribute__N)r   r   r   r   r   r   r%   r   r   r   r	   r      s   r   json)r&   r   typingr   typesr   r   r   r   r   r   r	   <module>   s
   