Your IP : 3.12.166.128


Current Path : /lib64/python2.7/Tools/scripts/
Upload File :
Current File : //lib64/python2.7/Tools/scripts/svneol.pyo

�
�mec@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	Cs�g}x�t||�D]�}yt|�}Wntk
rBqnXx�|j�}|jd�rePnt|j�d�}|j|�}|j|�|j�|j�}t|j�d�}|j|�}|j�qF|j	�qW|S(s=Return a list of property names for file fn in directory roottENDi(
RRR	treadlinet
startswithRtsplitRtappendtclose(	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	
	!