[Spambayes] message.py bugs
Tim Stone - Four Stones Expressions
tim at fourstonesExpressions.com
Tue Apr 29 15:28:53 EDT 2003
I checked in a fix for this last night, after it bit me too... :)
4/29/2003 3:41:59 AM, Oliver Maunder <lists at olivermaunder.co.uk> wrote:
>Hi all (and Tim especially)
>I've got a problem with the latest version of Message.py (1.24)
>The problem is in line 193 - in class Message
> return self._force_CRLF(message.SBHeaderMessage.as_string(self))
>The interpreter says it doesn't understand "message". Presumably this is
>because we're already inside message.py.
>Removing "message." makes things worse. SBHeaderMessage.as_string gets
>called, but SBHeaderMessage doesn't have it's own as_string method, so
>the version in Message gets called, which in turn calls
>SBHeaderMessage.as_string, and infinite recursion ensues.
>I've got round this by doing:
> return self._force_CRLF(email.Message.Message.as_string(self))
>Don't know if this does exacly what you intend, but it works for now. Is
>there a "super" or "parent" object you can use to call a method in the
>parent class? It would save typing "email.Message.Message".
>I got a python book yesterday, so I'll stop asking these questions soon :-)
>Spambayes mailing list
>Spambayes at python.org
c'est moi - TimS
There are 10 kinds of people in the world:
those who understand binary,
and those who don't.
More information about the Spambayes