MOON
Server: Apache
System: Linux vps.thepromohut.com 2.6.18-398.el5 #1 SMP Tue Sep 16 20:51:48 EDT 2014 i686
User: caretrak (507)
PHP: 5.2.10
Disabled: NONE
Upload Files
File: //proc/self/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