403Webshell
Server IP : 104.21.21.239  /  Your IP : 216.73.216.55
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.7
System : Linux ip-172-31-69-123.ec2.internal 6.1.177-224.371.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 27 20:28:29 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.9/site-packages/setuptools/command/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.9/site-packages/setuptools/command/__pycache__/rotate.cpython-39.pyc
a

H�8hP�@sTddlmZddlmZddlmZddlZddlZddlm	Z	Gdd�de	�Z
dS)�)�convert_path)�log)�DistutilsOptionErrorN)�Commandc@s8eZdZdZdZgd�ZgZdd�Zdd�Zdd	�Z	d
S)�rotatezDelete older distributionsz2delete older distributions, keeping N newest files))zmatch=�mzpatterns to match (required))z	dist-dir=�dz%directory where the distributions are)zkeep=�kz(number of matching distributions to keepcCsd|_d|_d|_dS)N)�match�dist_dir�keep)�self�r�=/usr/lib/python3.9/site-packages/setuptools/command/rotate.py�initialize_optionsszrotate.initialize_optionsc
Cs�|jdurtd��|jdur$td��zt|j�|_Wn.tyb}ztd�|�WYd}~n
d}~00t|jt�r�dd�|j�d�D�|_|�dd�dS)	NzQMust specify one or more (comma-separated) match patterns (e.g. '.zip' or '.egg')z$Must specify number of files to keepz--keep must be an integercSsg|]}t|����qSr)r�strip)�.0�prrr�
<listcomp>(sz+rotate.finalize_options.<locals>.<listcomp>�,Zbdist)rr)	r
rr�int�
ValueError�
isinstance�str�splitZset_undefined_options)r
�errr�finalize_optionss
�
 
�zrotate.finalize_optionscCs�|�d�ddlm}|jD]�}|j��d|}|tj�|j|��}dd�|D�}|�	�|�
�t�dt
|�|�||jd�}|D]<\}}t�d|�|js�tj�|�r�t�|�q�t�|�q�qdS)	NZegg_infor)�glob�*cSsg|]}tj�|�|f�qSr)�os�path�getmtime)r�frrrr4�zrotate.run.<locals>.<listcomp>z%d file(s) matching %szDeleting %s)Zrun_commandrr
ZdistributionZget_namerr �joinr�sort�reverser�info�lenrZdry_run�isdir�shutilZrmtree�unlink)r
r�pattern�files�tr"rrr�run-s 

z
rotate.runN)
�__name__�
__module__�__qualname__�__doc__�descriptionZuser_optionsZboolean_optionsrrr/rrrrr
sr)Zdistutils.utilrZ	distutilsrZdistutils.errorsrrr*Z
setuptoolsrrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit