Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /usr/lib64/python2.7/Tools/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.7/Tools/scripts/svneol.pyc
�
[��dc@s�dZddlZddlZd�Zd�Zejd�jZx�ejd�D]�\Z	Z
Zde
kr}e
jd�nx[eD]SZ
ee
�r�dee	e
�kr�ejje	e
�Zejd	e�q�q�q�WqRWdS(
s�
SVN helper script.

Try to set the svn:eol-style property to "native" on every .py, .txt, .c and
.h file in the directory tree rooted at the current directory.

Files with the svn:eol-style property already set (to anything) are skipped.

svn will itself refuse to set this property on a file that's not under SVN
control, or that has a binary mime-type property set.  This script inherits
that behavior, and passes on whatever warning message the failing "svn
propset" command produces.

In the Python project, it's safe to invoke this script from the root of
a checkout.

No output is produced for files that are ignored.  For a file that gets
svn:eol-style set, output looks like:

    property 'svn:eol-style' set on 'Lib\ctypes\__init__.py'

For a file not under version control:

    svn: warning: 'patch-finalizer.txt' is not under version control

and for a file with a binary mime-type property:

    svn: File 'Lib	est	est_pep263.py' has binary mime type property
i����NcCs�tjj|dd|d�}y4tttjj|dd��j�j��}Wntk
rggSX|d
kr�tjj|dd|d�tjj|dd|d�gStd	�dS(Ns.svntpropss	.svn-worktformatii	s	prop-bases	.svn-basesUnknown repository format(ii	(	tostpathtjointinttopentreadtstriptIOErrort
ValueError(troottfntdefaultR((s,/usr/lib64/python2.7/Tools/scripts/svneol.pyt	propfiles$s4
 c	Csg}xt||�D]�}yt|�}Wntk
rBqnXx�|j�}|jd�rePn|jd�szt�t|j�d�}|j|�}|j	|�|j�|j�}|jd�s�t�t|j�d�}|j|�}|j�qF|j
�qW|S(s=Return a list of property names for file fn in directory roottENDsK isV (RRR	treadlinet
startswithtAssertionErrorRtsplitRtappendtclose(	RRtresultRtftlinetLtkeytvalue((s,/usr/lib64/python2.7/Tools/scripts/svneol.pytproplist1s,



s\.([hc]|py|txt|sln|vcproj)$t.s.svns
svn:eol-styles%svn propset svn:eol-style native "%s"(t__doc__treRRRtcompiletsearchtpossible_text_filetwalkRtdirstfilestremoveRRRtsystem(((s,/usr/lib64/python2.7/Tools/scripts/svneol.pyt<module>s	
	!


ZeroDay Forums Mini