a ÐöøcØã@sÒdZddlZddlZddlmZdd„Zejr6dd„Ze ¡dkoFejZerPe ndd „Z z,d d l m Z m Z mZmZd d l mZmZWnHeyÌddlZdd lm Z mZmZddd„Z dd„Zdd„ZYn0dS)z2 Compatibility Support for Python 2.7 and earlier éN)ÚsixcCs | |¡S)zH Given an HTTPMessage, return all headers matching a given key. )Úget_all©ÚmessageÚkey©rúb/workspaces/shunt/resources/test-fastapi/venv/lib/python3.9/site-packages/setuptools/py27compat.pyÚget_all_headers sr cCs | |¡S©N)Ú getheadersrrrrr sÚLinuxcCs|Sr r)ÚxrrrÚóré)Ú find_moduleÚ PY_COMPILEDÚ PY_FROZENÚ PY_SOURCE)Úget_frozen_objectÚ get_module)rrrc Csj| d¡}|rf| d¡}t ||¡\}}\}}}} |tjkrP|pFdg}|g}q |r td||fƒ‚q | S)z7Just like 'imp.find_module()', but with package supportÚ.rÚ__init__zCan't find %r in %s)ÚsplitÚpopÚimprÚ PKG_DIRECTORYÚ ImportError) ÚmoduleÚpathsÚpartsÚpartÚfÚpathÚsuffixÚmodeÚkindÚinforrrr's    rcCs t |¡Sr )rr)rrrrrr7srcCstj|g|¢RŽtj|Sr )rÚ load_moduleÚsysÚmodules)rrr'rrrr:sr)N)Ú__doc__r)ÚplatformZsetuptools.externrr ÚPY2ÚsystemZlinux_py2_asciiÚstrZ rmtree_safeÚ_imprrrrrrrrrrrrÚs&  þ