관리-도구
편집 파일: util.cpython-37.pyc
B ���ax � @ s^ d dl mZmZ d dlmZ d dlmZ d dlmZ G dd� de �Z dd� ZG d d � d �ZdS )� )�absolute_import�unicode_literals)� attrgetter)�ZipFile)�ensure_textc @ st e Zd Zdd� Zedd� �Zedd� �Zedd� �Zed d � �Z e dd� �Zed d� �Zdd� Z dd� Zdd� ZdS )�Wheelc C s || _ |j�d�| _d S )N�-)�path�stem�split�_parts)�selfr � r �L/opt/alt/python37/lib/python3.7/site-packages/virtualenv/seed/wheels/util.py�__init__ s zWheel.__init__c C s2 |d k r.|j dkr.t|j�d��dkr.| |�S d S )Nz.whlr � )�suffix�lenr r )�clsr r r r � from_path s &zWheel.from_pathc C s | j d S )Nr )r )r r r r �distribution s zWheel.distributionc C s | j d S )N� )r )r r r r �version s z Wheel.versionc C s | � | j�S )N)�as_version_tupler )r r r r � version_tuple s zWheel.version_tuplec C s^ g }xD| � d�dd� D ].}y|�t|�� W q tk rD P Y qX qW |sVt| ��t|�S )N�.r � )r �append�int� ValueError�tuple)r �result�partr r r r "