[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: Greg Stein <gstein_at_lyra.org>
Date: 2003-04-30 00:03:29 CEST

On Tue, Apr 29, 2003 at 10:11:05AM -0500, kfogel@tigris.org wrote:
>...
> +++ branches/cvs2svn-kfogel/tools/cvs2svn/cvs2svn.py Tue Apr 29 10:11:04 2003
>...
> + 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.

>...

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Apr 30 00:04:41 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.