관리-도구
편집 파일: models.cpython-36.pyc
3 �Re� � @ s d Z ddlZG dd� de�ZdS )zUtilities for defining models � Nc @ s` e Zd ZdZddgZdd� Zdd� Zdd � Zd d� Zdd � Z dd� Z dd� Zdd� Zdd� Z dS )�KeyBasedCompareMixinz<Provides comparison capabilities that is based on a key �_compare_key�_defining_classc C s || _ || _d S )N)r r )�self�key�defining_class� r ��/builddir/build/BUILDROOT/alt-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/utils/models.py�__init__ s zKeyBasedCompareMixin.__init__c C s t | j�S )N)�hashr )r r r r �__hash__ s zKeyBasedCompareMixin.__hash__c C s | j |tj�S )N)�_compare�operator�__lt__)r �otherr r r r s zKeyBasedCompareMixin.__lt__c C s | j |tj�S )N)r r �__le__)r r r r r r s zKeyBasedCompareMixin.__le__c C s | j |tj�S )N)r r �__gt__)r r r r r r s zKeyBasedCompareMixin.__gt__c C s | j |tj�S )N)r r �__ge__)r r r r r r s zKeyBasedCompareMixin.__ge__c C s | j |tj�S )N)r r �__eq__)r r r r r r "