403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.158
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python36/lib64/python3.6/Tools/scripts/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python36/lib64/python3.6/Tools/scripts/__pycache__/svneol.cpython-36.pyc
3

x2_�
�@sbdZddlZddlZddlZddlZdd�Zdd�Zdd�Zejd	�j	Z
d
d�Zedkr^e�dS)
a�
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\test\test_pep263.py' has binary mime type property
�NcCs�tjj|dd|d�}y$tttjj|dd��j�j��}Wntk
rNgSX|d
kr�tjj|dd|d�tjj|dd|d�gStd	��dS)Nz.svnZpropsz	.svn-work�format��	z	prop-basez	.svn-basezUnknown repository format)rr)	�os�path�join�int�open�read�strip�IOError�
ValueError)�root�fn�defaultr�r�9/opt/alt/python36/lib64/python3.6/Tools/scripts/svneol.py�	propfiles's$rc	Cs�g}x�t||�D]�}yt|�}Wntk
r6wYnXx�|j�}|jd�rNP|jd�s\t�t|j�d�}|j|�}|j	|�|j�|j�}|jd�s�t�t|j�d�}|j|�}|j�q:W|j
�qW|S)z>Return a list of property names for file fn in directory root.ZENDzK �zV )rr	r�readline�
startswith�AssertionErrorr�splitr
�append�close)	rr�resultr�f�line�L�key�valuerrr�proplist5s,



r!cCs$dj|�}tj|dd�}|j�dS)Nz%svn propset svn:eol-style native "{}"T)�shell)r�
subprocess�Popen�wait)r�cmdZpropsetrrr�set_eol_nativeWs
r'z\.([hc]|py|txt|sln|vcproj)$cCs�x�tjdd�ptjgD]�}tjj|�rPtjj|�\}}dt||�kr�t|�qtjj	|�rxdtj
|�D]V\}}}d|kr�|jd�x8|D]0}t|�r�dt||�kr�tjj
||�}t|�q�WqhWqWdS)Nrz
svn:eol-stylez.svn)�sys�argvr�curdirr�isfilerr!r'�isdir�walk�remove�possible_text_filer)�argrr�dirs�filesrrrr�main`s


r3�__main__)
�__doc__�rerr(r#rr!r'�compile�searchr/r3�__name__rrrr�<module>s"

Youez - 2016 - github.com/yon3zu
LinuXploit