HEX
Server: Apache
System: Linux p102.lithium.hosting 4.18.0-553.141.1.el8_10.x86_64 #1 SMP Fri Jul 10 17:48:02 UTC 2026 x86_64
User: bvzmoamr (9955)
PHP: 8.1.34
Disabled: syslog
Upload Files
File: //usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/ro.pyc
�
1�3\c@@s;dZddlmZdZd�Zd�Zd�ZdS(s7Compute a resolution order for an object and its bases
i(tabsolute_importtrestructuredtextcC@sgi}g}xTt|�D]F}x=t|�D]/}||kr,d||<|jd|�q,q,WqW|S(s�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']

    ii(treversedtinsert(t	orderingstseentresulttorderingto((sL/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/ro.pyt_mergeOrderingss
cC@sD|g}d}x.t|�D] }|d7}|j|||+qW|S(Nii(titert	__bases__(tobRti((sL/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/ro.pyt_flatten2s	
cC@stt|�g�S(s/Compute a "resolution order" for an object
    (R	R(tobject((sL/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/ro.pytro@sN(t__doc__t
__future__Rt
__docformat__R	RR(((sL/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/ro.pyt<module>s