/
lib64
/
python3.9
/
site-packages
/
mercurial
/
__pycache__
/
Upload File
HOME
a �+�b�� � @ s� d dl mZ ddlmZ ddlmZmZmZmZ ddlm Z dd� Z G dd � d e�ZG d d� de�Z G dd � d e�Zdd� ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�Zddd�ZG dd� de�ZG dd� de�ZdS ) � )�absolute_import� )�getattr)�encoding�error�pycompat�util)� stringutilc C s t �t| �j��d�S )N� _)r Zsysbytes�type�__name__�lstrip)�o� r �8/usr/lib64/python3.9/site-packages/mercurial/smartset.py� _typename s r c @ s� e Zd Zdd� ZeZdd� Zdd� ZdZdZdd � Z d d� Z dd � Zdd� Zdd� Z dd� Zdd� Zdd� Zdd� Zd*dd�Zdd� Zdd � Zd!d"� Zd+d$d%�Zd&d'� Zd(d)� ZdS ),�abstractsmartsetc C s t � �dS )z!True if the smartset is not emptyN��NotImplementedError��selfr r r �__nonzero__ s zabstractsmartset.__nonzero__c C s t � �dS )zprovide fast membership testingNr )r �revr r r �__contains__ s zabstractsmartset.__contains__c C s t � �dS )z:iterate the set in the order it is supposed to be iteratedNr r r r r �__iter__# s zabstractsmartset.__iter__Nc C s t � �dS )z/True if the set will iterate in ascending orderNr r r r r �isascending/ s zabstractsmartset.isascendingc C s t � �dS )z0True if the set will iterate in descending orderNr r r r r �isdescending3 s zabstractsmartset.isdescendingc C s t � �dS )z3True if the set will iterate in topographical orderNr r r r r �istopo7 s zabstractsmartset.istopoc s@ | j du rt| �� n| � � D ]� q.qtd��� fdd�| _� S )z%return the minimum element in the setN� arg is an empty sequencec s � S �Nr r ��vr r �<lambda>D � z&abstractsmartset.min.<locals>.<lambda>)�fastasc�min� ValueErrorr r r r r% ; s zabstractsmartset.minc s>