![]() Server : Apache/2.4.52 (Ubuntu) System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.21 Disable Function : NONE Directory : /lib/python3/dist-packages/landscape/lib/__pycache__/ |
o ���c\ � @ sX d dl mZ G dd� de�ZG dd� de�Zdd� Zdd � Zd d� Zdd � Z dd� Z dS )� )�xrangec @ s e Zd ZdZdS )� SequenceErrorz@Raised when the sequence isn't proper for translation to ranges.N)�__name__� __module__�__qualname__�__doc__� r r �>/usr/lib/python3/dist-packages/landscape/lib/sequenceranges.pyr s r c @ s` e Zd ZdZdd� Zedd� �Zedd� �Zdd � Zd d� Z dd � Z dd� Zdd� Zdd� Z dS )�SequenceRangesaZ High level interface to ranges. A ranges list represent a sequence of ordered and non-repeating elements into a more compact format, by representing 3 or more consecutive entries by a range. This means that a sequence such as [1, 2, 4, 5, 6, 8, 10, 11, 12, 14] becomes [1, 2, (4, 6), 8, (10, 12), 14] c C s g | _ d S �N��_ranges��selfr r r �__init__ � zSequenceRanges.__init__c C s | � }t |�|jd d �<