관리-도구
편집 파일: py27compat.cpython-38.opt-1.pyc
U �Qab� � @ s� d Z ddlZddlZddlmZ dd� Zejr6dd� Ze�� dkoFejZerPe ndd � Z z,d dlmZm Z mZmZ d dlmZmZ W nJ ek r� ddlZdd lm Z mZmZ ddd�Zdd� Zdd� ZY nX dS )z2 Compatibility Support for Python 2.7 and earlier � N)�sixc C s | � |�S )zH Given an HTTPMessage, return all headers matching a given key. )Zget_all��message�key� r �9/usr/lib/python3.8/site-packages/setuptools/py27compat.py�get_all_headers s r c C s | � |�S �N)Z getheadersr r r r r s ZLinuxc C s | S r r )�xr r r �<lambda> � r � )�find_module�PY_COMPILED� PY_FROZEN� PY_SOURCE)�get_frozen_object� get_module)r r r c C sj | � 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 Z PKG_DIRECTORY�ImportError) �module�paths�parts�part�f�path�suffix�modeZkind�infor r r r '