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: //lib/python2.7/dist-packages/svn/core.pyc
�
Lr}bc@s�ddlTddljZddlZddlZdefd��YZd�Zej	e�dd�Z
ejZe
ZeZd�Zd	�Zd
�Zd�Zd�Zd
dd��YZdd�ZddlZejdkrddlZejd�Zd�Zd�Z nd�Zd�Z d�Z!d�Z"dd�Zd�Z#e#Z$d�Z%e%Z&d�Z'e(d�e)��Z*dS(i����(t*NtSubversionExceptioncBs8eZdddddd�Zd�Zed��ZRS(cCs�g}|dk	s|dk	rJ|j|�|dk	rJ|j|�qJntj||�||_||_||_||_||_dS(s�Initialize a new Subversion exception object.

    Arguments:
    message     -- optional user-visible error message
    apr_err     -- optional integer error code (apr_status_t)
    child       -- optional SubversionException to wrap
    file        -- optional source file name where the error originated
    line        -- optional line number of the source file

    file and line are for C, not Python; they are redundant to the
    traceback information for exceptions raised in Python.
    N(	tNonetappendt	Exceptiont__init__tapr_errtmessagetchildtfiletline(tselfRRRR	R
targs((s,/usr/lib/python2.7/dist-packages/svn/core.pyR#s
				cCsod|j|jf}|jdkrB|d|j|jf}n|jdkrk|d|jj�}n|S(Ns%d - %ss

 at %s:%ds
(RRR	RR
Rt__str__(Rtdump((s,/usr/lib/python2.7/dist-packages/svn/core.pyR
?scCsId}|j�x2|D]*\}}}}||||||�}qW|S(s�Return new Subversion exception object from list of svn_error_t data.

    This alternative constructor is for turning a chain of svn_error_t
    objects in C into a chain of SubversionException objects in Python.
    errors is a list of (apr_err, message, file, line) tuples, in order
    from outer-most child to inner-most.

    Use svn_swig_py_svn_exception rather than calling this directly.

    Note: this modifies the errors list provided by the caller by
    reversing it.
    N(Rtreverse(tclsterrorsRRRR	R
((s,/usr/lib/python2.7/dist-packages/svn/core.pyt_new_from_err_listHs

N(t__name__t
__module__RRR
tclassmethodR(((s,/usr/lib/python2.7/dist-packages/svn/core.pyR!s			cCs#trtj�rtj�ndS(s+Cleanup the application pool before exitingN(tapplication_pooltvalidtdestroy(((s,/usr/lib/python2.7/dist-packages/svn/core.pyt_cleanup_application_pool\stcCsKxD|j�D]6\}}|j|�r
||||t|�<q
q
WdS(N(titemst
startswithtlen(tsymbol_dicttfrom_prefixt	to_prefixtnametvalue((s,/usr/lib/python2.7/dist-packages/svn/core.pyt_unprefix_namesbscCs)t|�}t|�}t||�}d}||kr=dSx.||krm||||krm|d}q@Wd}d}||kr�||}n||kr�||}n|dkr�||kr�dS|dkr�||kr�dS||kr|dkrdS||kr|dkrdSt||�S(Niist/i����(Rtmintcmp(tpath1tpath2t	path1_lent	path2_lentmin_lentitchar1tchar2((s,/usr/lib/python2.7/dist-packages/svn/core.pytsvn_path_compare_pathsns.#

cCstj||�S(N(t_libsvncoretsvn_swig_mergeinfo_merge(t	mergeinfotchanges((s,/usr/lib/python2.7/dist-packages/svn/core.pytsvn_mergeinfo_merge�scCs
tj|�S(N(R0tsvn_swig_mergeinfo_sort(R2((s,/usr/lib/python2.7/dist-packages/svn/core.pytsvn_mergeinfo_sort�scCstj||�S(N(R0tsvn_swig_rangelist_merge(t	rangelistR3((s,/usr/lib/python2.7/dist-packages/svn/core.pytsvn_rangelist_merge�scCs
tj|�S(N(R0tsvn_swig_rangelist_reverse(R8((s,/usr/lib/python2.7/dist-packages/svn/core.pytsvn_rangelist_reverse�stStreamcBs5eZdZd�Zdd�Zd�Zd�ZRS(s?A file-object-like wrapper for Subversion svn_stream_t objects.cCs
||_dS(N(t_stream(Rtstream((s,/usr/lib/python2.7/dist-packages/svn/core.pyR�scCs�|jdkrt�n|dkrmg}x3tr_t|jt�}|sOPn|j|�q-Wdj|�St|jt|��S(NR(	R=Rt
ValueErrortTruetsvn_stream_readtSVN_STREAM_CHUNK_SIZERtjointint(Rtamttchunkstdata((s,/usr/lib/python2.7/dist-packages/svn/core.pytread�s		
cCs,|jdkrt�nt|j|�dS(N(R=RR?tsvn_stream_write(Rtbuf((s,/usr/lib/python2.7/dist-packages/svn/core.pytwrite�s	cCs,|jdk	r(t|j�d|_ndS(N(R=Rtsvn_stream_close(R((s,/usr/lib/python2.7/dist-packages/svn/core.pytclose�s
N(RRt__doc__RRRHRKRM(((s,/usr/lib/python2.7/dist-packages/svn/core.pyR<�s
		cCst||�}|dS(sBConvert a Subversion datetime string into seconds since the Epoch.i@B(tsvn_time_from_cstring(tsvn_datetimetpooltaprtime((s,/usr/lib/python2.7/dist-packages/svn/core.pytsecs_from_timestr�stwin32s(\\+)(\"|$)cCs3tjtd|�}d|jdd�d}|S(Ns\1\1\2t"s"^""(t_retsubt_escape_shell_arg_retreplace(targ((s,/usr/lib/python2.7/dist-packages/svn/core.pytescape_shell_arg�scCsddjtt|��dS(s�Flatten a list of command line arguments into a command string.

    The resulting command string is expected to be passed to the system
    shell which os functions like popen() and system() invoke internally.
    RUt (RCtmapR[(targv((s,/usr/lib/python2.7/dist-packages/svn/core.pytargv_to_command_string�scCsd|jdd�dS(Nt's'\''(RY(tstr((s,/usr/lib/python2.7/dist-packages/svn/core.pyR[�scCsdjtt|��S(s�Flatten a list of command line arguments into a command string.

    The resulting command string is expected to be passed to the system
    shell which os functions like popen() and system() invoke internally.
    R\(RCR]R[(R^((s,/usr/lib/python2.7/dist-packages/svn/core.pyR_�scCsdS(s�Deprecated. APR is now initialized automatically. This is
  a compatibility wrapper providing the interface of the
  Subversion 1.2.x and earlier bindings.N((((s,/usr/lib/python2.7/dist-packages/svn/core.pytapr_initialize�scCsdS(s�Deprecated. APR is now terminated automatically. This is
  a compatibility wrapper providing the interface of the
  Subversion 1.2.x and earlier bindings.N((((s,/usr/lib/python2.7/dist-packages/svn/core.pyt
apr_terminatescCs
t|�S(s�Deprecated. Use Pool() instead. This is a compatibility
  wrapper providing the interface of the Subversion 1.2.x and
  earlier bindings.(tPool(tparent_pool((s,/usr/lib/python2.7/dist-packages/svn/core.pytsvn_pool_create
scCs5|dk	st�tr1tj�r1|j�ndS(s�Deprecated. Pools are now destroyed automatically. If you
  want to manually destroy a pool, use Pool.destroy. This is
  a compatibility wrapper providing the interface of the
  Subversion 1.2.x and earlier bindings.N(RtAssertionErrorRRR(RQ((s,/usr/lib/python2.7/dist-packages/svn/core.pytsvn_pool_destroyscCs |dk	st�|j�dS(s�Deprecated. Use Pool.clear instead. This is a compatibility
  wrapper providing the interface of the Subversion 1.2.x and
  earlier bindings.N(RRgtclear(RQ((s,/usr/lib/python2.7/dist-packages/svn/core.pytsvn_pool_clear!scOs|t||�S(s�Deprecated: Application-level pools are now created
  automatically. APR is also initialized and terminated
  automatically. This is a compatibility wrapper providing the
  interface of the Subversion 1.2.x and earlier bindings.

  Run a function as an "APR application".

  APR is initialized, and an application pool is created. Cleanup is
  performed as the function exits (normally or via an exception).
  (R(tfuncRtkw((s,/usr/lib/python2.7/dist-packages/svn/core.pytrun_app+scCsC|jd�s9|jd�s9|jd�s9|dkoBd|kS(Ntsvn_tSVN_tSVNSYNC_RdRt__(RdR(R(ts((s,/usr/lib/python2.7/dist-packages/svn/core.pyt<lambda>Bs((+tlibsvn.coretcoreR0tatexitt_atexittsysRRRtregisterR#RfRdtSWIG_SVN_IGNORED_REVNUMtSVN_IGNORED_REVNUMtSWIG_SVN_INVALID_REVNUMtSVN_INVALID_REVNUMR/R4R6R9R;R<RRSt_systplatformtreRVtcompileRXR[R_RbRcRhtapr_pool_destroyRjtapr_pool_clearRmtfiltertlocalst__all__(((s,/usr/lib/python2.7/dist-packages/svn/core.pyt<module>sF
;	
		$