U
    ç¥¡cÕ  ã                   @   sP   d Z ddlmZmZ zddlZW n ek
r8   dZY nX eeedœdd„ZdS )zQ
Compatibility layer to allow Pympler being used from different Python versions.
é    )ÚAnyÚIterableN)ÚobjÚlÚreturnc                 C   s   |D ]}|| kr dS qdS )ziReturns True if object o is in list.

    Required compatibility function to handle WeakSet objects.
    TF© )r   r   Úor   r   ú7/tmp/pip-unpacked-wheel-8ad_c8mj/pympler/util/compat.pyÚobject_in_list   s    r
   )Ú__doc__Útypingr   r   ÚtkinterÚImportErrorÚboolr
   r   r   r   r	   Ú<module>   s   
