MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/2/cwd/proc/3/root/usr/lib/python2.4/site-packages/setuptools/command/rotate.pyc
mň
Čk8Hc@sZdkZdkZdklZdklZdklZdkTdefd„ƒYZdS(N(sCommand(sconvert_path(slog(t*trotatecBsDtZdZdZdddgZgZd„Zd„Zd
„ZRS(sDelete older distributionss2delete older distributions, keeping N newest filessmatch=tmspatterns to match (required)s	dist-dir=tds%directory where the distributions areskeep=tks(number of matching distributions to keepcCsd|_d|_d|_dS(N(tNonetselftmatchtdist_dirtkeep(R((t=/usr/lib/python2.4/site-packages/setuptools/command/rotate.pytinitialize_optionss		cCsß|idjotdƒ‚n|idjotdƒ‚nyt|iƒ|_Wntj
otdƒ‚nXt|itƒo@g}|ii
dƒD]}|t|i
ƒƒq˘~|_n|iddƒdS(NsQMust specify one or more (comma-separated) match patterns (e.g. '.zip' or '.egg')s$Must specify number of files to keeps--keep must be an integert,tbdistR(sdist_dirsdist_dir(RRRtDistutilsOptionErrorR	tintt
ValueErrort
isinstancet
basestringt_[1]tsplittptconvert_pathtstriptset_undefined_options(RRR((R
tfinalize_optionss@cCs|idƒdkl}xő|iD]ę}|iiƒd|}|tii	|i
|ƒƒ}g}|D]}|tii|ƒ|fqj~}|iƒ|iƒtidt|ƒ|ƒ||i}x?|D]7\}}tid|ƒ|ipti|ƒqÓqÓWq$WdS(Ntegg_info(sglobRs%d file(s) matching %ssDeleting %s(Rtrun_commandtglobRtpatterntdistributiontget_nametostpathtjoinRtfilesRtftgetmtimetsorttreversetlogtinfotlenR	tttdry_runtunlink(RR#R$RRR+R((R
trun*s 


3



(smatch=Rspatterns to match (required)(s	dist-dir=Rs%directory where the distributions are(skeep=Rs(number of matching distributions to keep(	t__name__t
__module__t__doc__tdescriptiontuser_optionstboolean_optionsRRR.(((R
Rs		(	t	distutilsR t
setuptoolstCommandtdistutils.utilRR(tdistutils.errorsR(RRR(R5R7R ((R
t?s