[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: rev 5757 - branches/cvs2svn-kfogel/tools/cvs2svn

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2003-05-01 17:07:40 CEST

Greg Stein <gstein@lyra.org> writes:
> > + total_len = 10 # 'PROPS-END\n'
> > + for propname in props.keys():
> > + klen = len(propname) + 1 # propname + '\n'
> > + klen_len = int(math.ceil(math.log10(klen))) + 3 # 'K ' + klen + '\n'
>
> Can we just toss the 'math' module and do this Right?
>
> klen_len = len('K %d\n' % klen)
>
> Very clear, and no funny math going on.

And on top of that, we can save & use the formatted string when the
time comes to print the data, so we don't waste it...

Will do, thanks for the suggestion.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu May 1 17:55:05 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.