[spambayes-dev] Re: [Spambayes-checkins] spambayes/spambayesmessage.py, 1.40, 1.41

Kenny Pitt kennypitt at hotmail.com
Wed Nov 26 17:19:03 EST 2003


Richie Hindle wrote:
> [Me, applying patch 831388]
>> disp = ("%."+str(options["Headers", "header_score_digits"])+"f") %
prob 
> 
> [Sjoerd]
>> This can be done with
>> disp = "%.*f" % (options["Headers", "header_score_digits"], prob)
>> which looks more readable to me.
> 
> You're right, that is better.  Checked in as message.py 1.43 - thanks!

Identical format string is used in hammie.py.  Might be worth changing
it there as well.

-- 
Kenny Pitt




More information about the spambayes-dev mailing list