403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.217.130
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__/cleanfuture.cpython-36.opt-1.pyc
3

x2_�!�@shdZddlZddlZddlZddlZdadadadd�Zdd�Z	dd�Z
Gd	d
�d
�Zedkrde	�dS)a�cleanfuture [-d][-r][-v] path ...

-d  Dry run.  Analyze, but don't make any changes to, files.
-r  Recurse.  Search for all .py files in subdirectories too.
-v  Verbose.  Print informative msgs.

Search Python (.py) files for future statements, and remove the features
from such statements that are already mandatory in the version of Python
you're using.

Pass one or more file and/or directory paths.  When a directory path, all
.py files within the directory will be examined, and, if the -r option is
given, likewise recursively for subdirectories.

Overwrites files in place, renaming the originals with a .bak extension. If
cleanfuture finds nothing to change, the file is left alone.  If cleanfuture
does change a file, the changed file is a fixed-point (i.e., running
cleanfuture on the resulting .py file won't change it again, at least not
until you try it again with a later Python release).

Limitations:  You can do these things, but this tool won't help you then:

+ A future statement cannot be mixed with any other statement on the same
  physical line (separated by semicolon).

+ A future statement cannot contain an "as" clause.

Example:  Assuming you're using Python 2.2, if a file containing

from __future__ import nested_scopes, generators

is analyzed by cleanfuture, the line is rewritten to

from __future__ import generators

because nested_scopes is no longer optional in 2.2 but generators is.
�NcGs<tt|�}dj|�}|dd�dkr,|d7}tjj|�dS)N� ��
���)�map�str�join�sys�stderr�write)�argsZstrings�msg�r�>/opt/alt/python36/lib64/python3.6/Tools/scripts/cleanfuture.py�errprint2s


rcCs�ddl}y|jtjdd�d�\}}Wn*|jk
rP}zt|�dSd}~XnXxD|D]<\}}|dkrrtd7aqX|dkr�td7aqX|dkrXtd7aqXW|s�tdt�dSx|D]}t	|�q�WdS)NrrZdrvz-dz-rz-vzUsage:)
�getoptr	�argv�errorr�dryrun�recurse�verbose�__doc__�check)rZoptsrr
�o�a�argrrr�main9s$



rcCs0tjj|�r�tjj|�r�tr(td|�tj|�}xN|D]F}tjj||�}trhtjj|�rhtjj|�sv|j	�j
d�r8t|�q8WdStr�td|ddd�yt|�}Wn4t
k
r�}ztd|t|�f�dSd}~XnXt||�}|j�}|�r�|j�|j�|�rt�r&td�t�r&td	�x�|D]z\}}	}
td
||d|	df�x*t||	d�D]}t|j|dd��q`W|
dk�r�td�ntd
�t|
dd��q,Wt�s,|d}tjj|��r�tj|�tj||�t�r�td|d|�t|d�}
|j|
�|
j�t�r,td|�nt�r,td�dS)Nzlisting directoryz.pyZcheckingz...r)�endz%r: I/O Error: %szchanged.z+But this is a dry run, so leaving it alone.z%r lines %d-%drz
-- deletedz
-- change to:z.bakZrenamedZto�wz	wrote newz
unchanged.)�os�path�isdir�islinkr�print�listdirrr�lower�endswithr�open�IOErrorrr�FutureFinder�run�
gettherest�closer�range�lines�exists�remove�renamer)�file�names�name�fullname�fr
Zff�changed�s�e�line�iZbak�grrrrNsd








rc@s4eZdZdd�Zdd�Zdd�Zdd�Zd	d
�ZdS)r)cCs"||_||_d|_g|_g|_dS)Nr)r6�fname�ateofr.r7)�selfr6r=rrr�__init__�s
zFutureFinder.__init__cCs4|jr
dS|jj�}|dkr$d|_n|jj|�|S)N�r)r>r6�readliner.�append)r?r:rrr�getline�s
zFutureFinder.getlinecCs�tj}tj}tj}tj}tj}tj}|j}tj|j	�j
}|�\}	}
\}}\}
}}x*|	|||fkrz|�\}	}
\}}\}
}}qRWx$|	|kr�|�\}	}
\}}\}
}}q~W�x<x*|	|||fkr�|�\}	}
\}}\}
}}q�W|	|ko�|
dks�P|d}|�\}	}
\}}\}
}}|	|k�o|
dk�sP|�\}	}
\}}\}
}}|	|k�oB|
dk�sHP|�\}	}
\}}\}
}}g}x`|	|k�r�|j|
�|�\}	}
\}}\}
}}|	|k�o�|
dk�s�P|�\}	}
\}}\}
}}�qfWd}|	|k�r�|
}|�\}	}
\}}\}
}}|	|k	�rtd|j
||f�gS|d}g}xZ|D]R}tt|d�}|dk�rJ|j|�n*|j�}|dk�st|tjk�rjn
|j|��q$Wt|�t|�kr�t|�dk�r�d}n0d}|d	j|�7}|dk	�r�|d
|7}|d7}|j|||f�q�W|S)N�fromr�
__future__�import�,z)Skipping file %r; can't parse line %d:
%srzfrom __future__ import z, rr)�tokenize�STRING�NL�NEWLINE�COMMENT�NAME�OPr7�generate_tokensrD�__next__rCrr=�getattrrFZgetMandatoryReleaser	�version_info�lenr)r?rJrKrLrMrNrOr7�get�type�tokenZsrowZscolZerowZecolr:�	startlineZfeaturesZcommentZendlineZ
okfeaturesr6�objectZreleasedrrrr*�sz






zFutureFinder.runcCs|jrd|_n|jj�|_dS)NrA)r>�therestr6�read)r?rrrr+�szFutureFinder.gettherestcCsx|j}g|_|j�x@|D]8\}}}|dkr>|j||d�=q|g|j||d�<qW|j|j�|jrt|j|j�dS)Nr)r7�reverser.�
writelinesrZr)r?r6r7r8r9r:rrrrszFutureFinder.writeN)�__name__�
__module__�__qualname__r@rDr*r+rrrrrr)�s


_r)�__main__)
rrFrIrr	rrrrrrr)r^rrrr�<module>'s8

Youez - 2016 - github.com/yon3zu
LinuXploit