HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/root/lib/python3/dist-packages/zope/interface/__pycache__/ro.cpython-38.pyc
U

ؒ�]��@s$dZdZdd�Zdd�Zdd�ZdS)	z7Compute a resolution order for an object and its bases
ZrestructuredtextcCsDi}g}t|�D].}t|�D] }||krd||<|�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']

    ��)�reversed�insert)Z	orderings�seen�resultZordering�o�r�3/usr/lib/python3/dist-packages/zope/interface/ro.py�_mergeOrderingssr
cCs2|g}d}t|�D]}|d7}|j|||�<q|S)Nrr)�iter�	__bases__)�obr�irrr	�_flatten/srcCstt|�g�S)z/Compute a "resolution order" for an object
    )r
r)�objectrrr	�ro=srN)�__doc__Z
__docformat__r
rrrrrr	�<module>s