HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/mercurial/thirdparty/zope/interface/__pycache__/ro.cpython-310.pyc
o

�]Lb��@s0dZddlmZdZdd�Zdd�Zdd	�Zd
S)z7Compute a resolution order for an object and its bases
�)�absolute_import�restructuredtextcCsDi}g}t|�D]}t|�D]}||vrd||<|�d|�qq|S)a�Merge multiple orderings so that within-ordering order is preserved

    Orderings are constrained in such a way that if an object appears
    in two or more orderings, then the suffix that begins with the
    object must be in both orderings.

    For example:

    >>> _mergeOrderings([
    ... ['x', 'y', 'z'],
    ... ['q', 'z'],
    ... [1, 3, 5],
    ... ['z']
    ... ])
    ['x', 'y', 'q', 1, 3, 5, 'z']

    �r)�reversed�insert)�	orderings�seen�result�ordering�o�r�H/usr/lib/python3/dist-packages/mercurial/thirdparty/zope/interface/ro.py�_mergeOrderingss��rcCs2|g}d}t|�D]
}|d7}|j|||�<q	|S)Nrr)�iter�	__bases__)�obr	�irrr
�_flatten2srcCstt|�g�S)z/Compute a "resolution order" for an object
    )rr)�objectrrr
�ro@srN)�__doc__�
__future__r�
__docformat__rrrrrrr
�<module>s