404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@52.14.201.216: ~ $
3

9��ft�@s`ddlmZddlmZddlmZddlZddlZddlm	Z	ddl
mZGdd�de�ZdS)	�)�convert_path)�log)�DistutilsOptionErrorN)�six)�Commandc@s:eZdZdZdZdddgZgZd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�/usr/lib/python3.6/rotate.py�initialize_optionsszrotate.initialize_optionscCs�|jdkrtd��|jdkr$td��yt|j�|_Wntk
rPtd��YnXt|jtj�rxdd�|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 integercSsg|]}t|j���qSr)r�strip)�.0�prrr�
<listcomp>+sz+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�}xD|D]<\}}tjd|�|js�tjj|�r�tj|�q�tj|�q�WqWdS)	NZegg_infor)�glob�*cSsg|]}tjj|�|f�qSr)�os�path�getmtime)r�frrrr6szrotate.run.<locals>.<listcomp>z%d file(s) matching %szDeleting %s)Zrun_commandr"rZdistributionZget_namer$r%�joinr�sort�reverser�info�lenrZdry_run�isdir�shutilZrmtree�unlink)rr"�pattern�files�tr'rrr�run/s 
z
rotate.runN)rr	r
)rrr
)rrr)
�__name__�
__module__�__qualname__�__doc__�descriptionZuser_optionsZboolean_optionsrr!r3rrrrrsr)
Zdistutils.utilrZ	distutilsrZdistutils.errorsrr$r.Zsetuptools.externrZ
setuptoolsrrrrrr�<module>s

Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 664 B 0644
__init__.cpython-36.pyc File 664 B 0644
alias.cpython-36.opt-1.pyc File 2.3 KB 0644
alias.cpython-36.pyc File 2.3 KB 0644
bdist_egg.cpython-36.opt-1.pyc File 14 KB 0644
bdist_egg.cpython-36.pyc File 14 KB 0644
bdist_rpm.cpython-36.opt-1.pyc File 1.66 KB 0644
bdist_rpm.cpython-36.pyc File 1.66 KB 0644
bdist_wininst.cpython-36.opt-1.pyc File 901 B 0644
bdist_wininst.cpython-36.pyc File 901 B 0644
build_clib.cpython-36.opt-1.pyc File 2.32 KB 0644
build_clib.cpython-36.pyc File 2.32 KB 0644
build_ext.cpython-36.opt-1.pyc File 9.71 KB 0644
build_ext.cpython-36.pyc File 9.74 KB 0644
build_py.cpython-36.opt-1.pyc File 8.3 KB 0644
build_py.cpython-36.pyc File 8.3 KB 0644
develop.cpython-36.opt-1.pyc File 6.2 KB 0644
develop.cpython-36.pyc File 6.2 KB 0644
dist_info.cpython-36.opt-1.pyc File 1.29 KB 0644
dist_info.cpython-36.pyc File 1.29 KB 0644
easy_install.cpython-36.opt-1.pyc File 63.38 KB 0644
easy_install.cpython-36.pyc File 63.42 KB 0644
egg_info.cpython-36.opt-1.pyc File 20.4 KB 0644
egg_info.cpython-36.pyc File 20.4 KB 0644
install.cpython-36.opt-1.pyc File 3.81 KB 0644
install.cpython-36.pyc File 3.81 KB 0644
install_egg_info.cpython-36.opt-1.pyc File 2.31 KB 0644
install_egg_info.cpython-36.pyc File 2.31 KB 0644
install_lib.cpython-36.opt-1.pyc File 3.88 KB 0644
install_lib.cpython-36.pyc File 3.91 KB 0644
install_scripts.cpython-36.opt-1.pyc File 2.15 KB 0644
install_scripts.cpython-36.pyc File 2.15 KB 0644
py36compat.cpython-36.opt-1.pyc File 4.44 KB 0644
py36compat.cpython-36.pyc File 4.44 KB 0644
register.cpython-36.opt-1.pyc File 517 B 0644
register.cpython-36.pyc File 517 B 0644
rotate.cpython-36.opt-1.pyc File 2.44 KB 0644
rotate.cpython-36.pyc File 2.44 KB 0644
saveopts.cpython-36.opt-1.pyc File 848 B 0644
saveopts.cpython-36.pyc File 848 B 0644
sdist.cpython-36.opt-1.pyc File 6.16 KB 0644
sdist.cpython-36.pyc File 6.16 KB 0644
setopt.cpython-36.opt-1.pyc File 4.42 KB 0644
setopt.cpython-36.pyc File 4.42 KB 0644
test.cpython-36.opt-1.pyc File 7.9 KB 0644
test.cpython-36.pyc File 7.9 KB 0644
upload.cpython-36.opt-1.pyc File 1.28 KB 0644
upload.cpython-36.pyc File 1.28 KB 0644
upload_docs.cpython-36.opt-1.pyc File 5.86 KB 0644
upload_docs.cpython-36.pyc File 5.88 KB 0644