U
    7h                     @   s   d dl mZ dd ZdS )    )is_iterablec                 C   sf   t | tr$tdd t|  D S zt|  W n0 tk
r`   t| rZttt	|  Y S  Y nX | S )z
    Attempt to make value hashable or raise a TypeError if it fails.

    The returned value should generate the same hash for equal values.
    c                 S   s   g | ]\}}|t |fqS  )make_hashable).0keyZnested_valuer   r   O/var/www/formularioweb/env/lib/python3.8/site-packages/django/utils/hashable.py
<listcomp>   s   z!make_hashable.<locals>.<listcomp>)

isinstancedicttuplesorteditemshash	TypeErrorr   mapr   )valuer   r   r   r      s    

r   N)Zdjango.utils.itercompatr   r   r   r   r   r   <module>   s   