o
    ¹iÓ  ã                   @   sb   d dl Z zd dlmZ W n ey   d dlmZ Y nw d dlmZ e jdkZdd„ Z	dd„ Z
dS )	é    N)ÚOrderedDict)ÚHTTP_STATUS_CODES)é   c                 C   s   t  | d¡S )z.Maps an HTTP status code to the textual statusÚ )r   Úget)Úcode© r   úW/var/www/edux/Edux_v2/venv/lib/python3.10/site-packages/flask_restful/utils/__init__.pyÚhttp_status_message   s   r
   c                 C   sp   t | tƒs
| di fS z| \}}}|||fW S  ty   Y nw z
| \}}||i fW S  ty2   Y nw | di fS )z/Return a three tuple of data, code, and headerséÈ   )Ú
isinstanceÚtupleÚ
ValueError)ÚvalueÚdatar   Úheadersr   r   r	   Úunpack   s   


ÿÿ
r   )ÚsysÚcollections.abcr   ÚImportErrorÚcollectionsÚwerkzeug.httpr   Úversion_infoÚPY3r
   r   r   r   r   r	   Ú<module>   s    ÿ
