File: //usr/lib/python3/dist-packages/django/utils/__pycache__/hashable.cpython-310.pyc
o
�a� � @ s d dl mZ dd� ZdS )� )�is_iterablec C s^ t | t�rtdd� t| �� �D ��S zt| � W | S ty. t| �r-ttt | �� Y S � w )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�qS � )�
make_hashable)�.0�key�nested_valuer r �7/usr/lib/python3/dist-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)�django.utils.itercompatr r r r r r �<module> s