HEX
Server: LiteSpeed
System: Linux us-phx-web1284.main-hosting.eu 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: u300739242 (300739242)
PHP: 8.2.30
Disabled: system, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/util/topological.pyc
�
���ec@s`dZddlmZddlmZdddgZd�Zed�Zd	�Z	d
�Z
dS(sTopological sorting algorithms.i(tutil(tCircularDependencyErrortsorttsort_as_subsetstfind_cyclesc
cs�tjt�}x%|D]\}}||j|�qWt|�}t|�}x�|r�g}x1|D])}|j||�re|j|�qeqeW|s�tdt||�t	|���n|j
|�g|D]}	|	|kr�|	^q�}|VqRWdS(NsCircular dependency detected.(Rtdefaultdicttsettaddtlistt
isdisjointtappendRRt
_gen_edgestdifference_update(
ttuplestallitemstedgestparenttchildttodottodo_settoutputtnodett((sL/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/util/topological.pyRs$	

%ccs4x-t||�D]}x|D]}|VqWqWdS(s,sort the given list of items by dependency.

    'tuples' is a list of tuples representing a partial ordering.

    deterministic_order is no longer used, the order is now always
    deterministic given the order of "allitems".    the flag is there
    for backwards compatibility with Alembic.

    N(R(R
Rtdeterministic_ordertset_ts((sL/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/util/topological.pyR+s
cCstjt�}x%|D]\}}||j|�qWt|�}t�}x�|D]�}|g}|j|�}	x�|r|d}
x�||
D]l}||kr�||j|�}|	j|�|j|�n||	kr�|j|�|	j	|�Pq�q�W|j
�}qtWqSW|S(Ni����(RRRRt
differencetindexRtupdateR
tremovetpop(R
RRRRt
nodes_to_testRRtstackRttoptcyc((sL/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/util/topological.pyR;s*	
		



cCs4tg|D]#}||D]}||f^qq
�S(N(R(Rtlefttright((sL/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/util/topological.pyRcsN(t__doc__tRtexcRt__all__RtTrueRRR(((sL/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/util/topological.pyt<module>s		(