[spambayes-bugs] [ spambayes-Patches-1628308 ] Fix for _ not being callable
SourceForge.net
noreply at sourceforge.net
Wed Apr 4 19:40:11 CEST 2007
Patches item #1628308, was opened at 2007-01-05 02:24
Message generated for change (Comment added) made by tebeka
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498105&aid=1628308&group_id=61702
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: Unstable (example)
Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Miki Tebeka (tebeka)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fix for _ not being callable
Initial Comment:
spambayes/__init__.py uses _, however IDLE (and probably other IDE's) are using _ as the last value returned.
If you do something line:
>>> 1
>>> import spambayes
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
import spambayes
File "/usr/local/lib/python2.5/site-packages/spambayes/__init__.py", line 9, in <module>
__date__ = _("August 2006")
TypeError: 'int' object is not callable
>>>
Attached is a fix that checks the _ is callable before using it.
----------------------------------------------------------------------
>Comment By: Miki Tebeka (tebeka)
Date: 2007-04-04 20:40
Message:
Logged In: YES
user_id=358087
Originator: YES
Works for me - thanks Mark
----------------------------------------------------------------------
Comment By: Mark Hammond (mhammond)
Date: 2007-04-04 14:44
Message:
Logged In: YES
user_id=14198
Originator: NO
Sorry for the delay - I just checked in a fix that removes all the '_'
handling from that module - it is either bogus or relies on too much magic
:) That example should now work.
Checking in __init__.py;
new revision: 1.20; previous revision: 1.19
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498105&aid=1628308&group_id=61702
More information about the Spambayes-bugs
mailing list