[spambayes-bugs] [ spambayes-Patches-1628308 ] Fix for _ not being callable

SourceForge.net noreply at sourceforge.net
Fri Jan 5 01:24:37 CET 2007


Patches item #1628308, was opened at 2007-01-05 02:24
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: Open
Resolution: None
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.

----------------------------------------------------------------------

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