ok

Mini Shell

Direktori : /opt/alt/python33/lib/python3.3/site-packages/setuptools/command/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib/python3.3/site-packages/setuptools/command/__pycache__/rotate.cpython-33.pyc

�
�/{Yc@s|ddlZddlZddlmZddlmZddlmZddlmZddl	TGdd�de�Z
dS(	iN(uCommand(u
basestring(uconvert_path(ulog(u*cBsY|EeZdZdZdZdddgZgZdd
�Zdd�Zdd�Z	dS(urotateuDelete older distributionsu2delete older distributions, keeping N newest filesumatch=umupatterns to match (required)u	dist-dir=udu%directory where the distributions areukeep=uku(number of matching distributions to keepcCsd|_d|_d|_dS(N(uNoneumatchudist_dirukeep(uself((u2/tmp/pip-jy811g-build/setuptools/command/rotate.pyuinitialize_optionss		urotate.initialize_optionscCs�|jdkrtd��n|jdkr<td��nyt|j�|_Wntk
rrtd��YnXt|jt�r�dd�|jjd�D�|_n|j	dd	�dS(
NuQMust specify one or more (comma-separated) match patterns (e.g. '.zip' or '.egg')u$Must specify number of files to keepu--keep must be an integercSs"g|]}t|j���qS((uconvert_pathustrip(u.0up((u2/tmp/pip-jy811g-build/setuptools/command/rotate.pyu
<listcomp>'s	u+rotate.finalize_options.<locals>.<listcomp>u,ubdistudist_dir(udist_dirudist_dir(
umatchuNoneuDistutilsOptionErrorukeepuintu
ValueErroru
isinstanceu
basestringusplituset_undefined_options(uself((u2/tmp/pip-jy811g-build/setuptools/command/rotate.pyufinalize_optionss
%urotate.finalize_optionscCs�|jd�ddlm}x�|jD]�}|jj�d|}|tjj|j|��}dd�|D�}|j	�|j
�tjdt
|�|�||jd�}x=|D]5\}}tjd|�|js�tj|�q�q�Wq'WdS(	Nuegg_infoi(uglobu*cSs(g|]}tjj|�|f�qS((uosupathugetmtime(u.0uf((u2/tmp/pip-jy811g-build/setuptools/command/rotate.pyu
<listcomp>1s	urotate.run.<locals>.<listcomp>u%d file(s) matching %suDeleting %s(urun_commanduglobumatchudistributionuget_nameuosupathujoinudist_dirusortureverseuloguinfoulenukeepudry_runuunlink(uselfuglobupatternufilesutuf((u2/tmp/pip-jy811g-build/setuptools/command/rotate.pyurun+s


	u
rotate.runN(umatch=umupatterns to match (required)(u	dist-dir=udu%directory where the distributions are(ukeep=uku(number of matching distributions to keep(
u__name__u
__module__u__qualname__u__doc__udescriptionuuser_optionsuboolean_optionsuinitialize_optionsufinalize_optionsurun(u
__locals__((u2/tmp/pip-jy811g-build/setuptools/command/rotate.pyurotates	urotate(u	distutilsuosu
setuptoolsuCommandusetuptools.compatu
basestringudistutils.utiluconvert_pathulogudistutils.errorsurotate(((u2/tmp/pip-jy811g-build/setuptools/command/rotate.pyu<module>s


Zerion Mini Shell 1.0