관리-도구
편집 파일: database.cpython-38.pyc
U &?�f�� � @ s� d Z ddlmZ ddlZddlZddlZddlZddlZddlZddl Z ddl Z ddlZddlm Z mZ ddlmZ ddlmZmZ ddlmZmZmZmZ dd lmZmZmZmZmZmZm Z d ddd dgZ!e�"e#�Z$dZ%dZ&deddde%dfZ'dZ(G dd� de)�Z*G dd� de)�Z+G dd � d e)�Z,G dd� de,�Z-G dd� de-�Z.G dd � d e-�Z/e.Z0e/Z1G dd� de)�Z2d)d!d"�Z3d#d$� Z4d%d&� Z5d'd(� Z6dS )*zPEP 376 implementation.� )�unicode_literalsN� )�DistlibException� resources)�StringIO)� get_scheme�UnsupportedVersionError)�Metadata�METADATA_FILENAME�WHEEL_METADATA_FILENAME�LEGACY_METADATA_FILENAME)�parse_requirement�cached_property�parse_name_and_version�read_exports� write_exports� CSVReader� CSVWriter�Distribution�BaseInstalledDistribution�InstalledDistribution�EggInfoDistribution�DistributionPathzpydist-exports.jsonzpydist-commands.json� INSTALLER�RECORD� REQUESTED� RESOURCES�SHAREDz .dist-infoc @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) �_CachezL A simple cache mapping names and .dist-info paths to distributions c C s i | _ i | _d| _dS )zZ Initialise an instance. There is normally one for each DistributionPath. FN)�name�path� generated��self� r$ �J/opt/hc_python/lib/python3.8/site-packages/pip/_vendor/distlib/database.py�__init__1 s z_Cache.__init__c C s | j �� | j�� d| _dS )zC Clear the cache, setting it to its initial state. FN)r �clearr r! r"