관리-도구
편집 파일: py31compat.cpython-36.pyc
3 9��f� � @ s� d dgZ yddlmZmZ W n, ek rH ddlmZmZ dd� ZY nX yddlmZ W n4 ek r� ddl Z ddlZG dd � d e �ZY nX dS ) �get_config_vars�get_path� )r r )r �get_python_libc C s | dkrt d��t| dk�S )N�platlib�purelibzName must be purelib or platlib)r r )� ValueErrorr )�name� r � /usr/lib/python3.6/py31compat.pyr s )�TemporaryDirectoryNc @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) r z� Very simple temporary directory context manager. Will try to delete afterward, but will also ignore OS and similar errors on deletion. c C s d | _ tj� | _ d S )N)r �tempfileZmkdtemp)�selfr r r �__init__ s zTemporaryDirectory.__init__c C s | j S )N)r )r r r r � __enter__! s zTemporaryDirectory.__enter__c C s2 yt j| jd� W n tk r& Y nX d | _d S )NT)�shutilZrmtreer �OSError)r �exctypeZexcvalueZexctracer r r �__exit__$ s zTemporaryDirectory.__exit__N)�__name__� __module__�__qualname__�__doc__r r r r r r r r s r )�__all__� sysconfigr r �ImportErrorZdistutils.sysconfigr r r r �objectr r r r �<module> s