관리-도구
편집 파일: version.cpython-38.pyc
U �Qab$- � @ s� d dl mZmZmZ d dlZd dlZd dlZddlmZ ddddd gZ e� d ddd dddg�Zdd� ZG dd� de �ZG dd� de�ZG dd� de�Ze�dej�Zdddddd�Zdd� Zdd� ZdZG d d� de�Zd!d"� Ze�d#�Zd$d%� Zd&d'� ZdS )(� )�absolute_import�division�print_functionN� )�Infinity�parse�Version� LegacyVersion�InvalidVersion�VERSION_PATTERN�_Version�epoch�release�dev�pre�post�localc C s, z t | �W S tk r& t| � Y S X dS )z� Parse the given version string and return either a :class:`Version` object or a :class:`LegacyVersion` object depending on if the given version is a valid PEP 440 version or a legacy version. N)r r r )�version� r �K/usr/lib/python3.8/site-packages/pkg_resources/_vendor/packaging/version.pyr s c @ s e Zd ZdZdS )r zF An invalid version was found, users should refer to PEP 440. N)�__name__� __module__�__qualname__�__doc__r r r r r $ s c @ sL e Zd Zdd� Zdd� Zdd� Zdd� Zd d � Zdd� Zd d� Z dd� Z dS )�_BaseVersionc C s t | j�S �N)�hash�_key��selfr r r �__hash__, s z_BaseVersion.__hash__c C s | � |dd� �S )Nc S s | |k S r r ��s�or r r �<lambda>0 � z%_BaseVersion.__lt__.<locals>.<lambda>��_compare�r �otherr r r �__lt__/ s z_BaseVersion.__lt__c C s | � |dd� �S )Nc S s | |kS r r r! r r r r$ 3 r% z%_BaseVersion.__le__.<locals>.<lambda>r&