403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.124
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__/fixnotice.cpython-36.pyc
3

x2_��@sXdZdaddlZddlZddlZdadadaddd�Zdd�Z	d	d
�Z
edkrTe	�dS)
a�(Ostensibly) fix copyright notices in files.

Actually, this script will simply replace a block of text in a file from one
string to another.  It will only do this once though, i.e. not globally
throughout the file.  It writes a backup file and then does an os.rename()
dance for atomicity.

Usage: fixnotices.py [options] [filenames]
Options:
    -h / --help
        Print this message and exit

    --oldnotice=file
        Use the notice in the file as the old (to be replaced) string, instead
        of the hard coded value in the script.

    --newnotice=file
        Use the notice in the file as the new (replacement) string, instead of
        the hard coded value in the script.

    --dry-run
        Don't actually make the changes, but print out the list of files that
        would change.  When used with -v, a status will be printed for every
        file.

    -v / --verbose
        Print a message for every file looked at, indicating whether the file
        is changed or not.
a�/***********************************************************
Copyright (c) 2000, BeOpen.com.
Copyright (c) 1995-2000, Corporation for National Research Initiatives.
Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
All rights reserved.

See the file "Misc/COPYRIGHT" for information on usage and
redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
******************************************************************/
�N�cCs(ttt��|rt|�tj|�dS)N)�print�__doc__�globals�sys�exit)�code�msg�r
�</opt/alt/python36/lib64/python3.6/Tools/scripts/fixnotice.py�usage4srcCs�y*tjtjdd�ddddddg�\}}Wn.tjk
rX}ztd|�WYdd}~XnXx�|D]x\}}|dkrztd
�q`|dkr�daq`|d
kr�daq`|dkr�t|�}|j�a	|j
�q`|dkr`t|�}|j�a|j
�q`Wx|D]}t|�q�WdS)N�Zhv�helpz
oldnotice=z
newnotice=zdry-run�verbose�-h�--helpr�-v�	--verbosez	--dry-runz--oldnoticez--newnotice)rr)rr)
�getoptr�argv�errorr�VERBOSE�DRYRUN�open�read�
OLD_NOTICE�close�
NEW_NOTICE�process)Zopts�argsr	Zopt�arg�fpr
r
r�main;s.


r"cCs�t|�}|j�}|j�|jt�}|dkr<tr8td|�dStsDtrNtd|�trVdS|d|�t||t	t�d�}|d}|d}t|d�}|j
|�|j�tj||�tj||�dS)Nrz
no change:z
   change:z.newz.bak�w)
rrr�findrrrrr�len�write�os�rename)�file�f�data�i�newZbackupr
r
rrXs(


$

r�__main__)r)rrr'rrrrrrr"r�__name__r
r
r
r�<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit