| Server IP : 138.197.176.125 / Your IP : 216.73.217.54 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/lib/python3/dist-packages/landscape/lib/__pycache__/ |
Upload File : |
U
���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__ s zSequenceRanges.__init__c C s | � }t |�|jd d �<