[Python-checkins] python/nondist/sandbox/spambayes mboxcount.py,1.1,1.2

Tim Peters tim.one@comcast.net
Mon, 26 Aug 2002 14:41:05 -0400


[bwarsaw@users.sourceforge.net]
> Modified Files:
> 	mboxcount.py
> Log Message:
> _factory(): Use a marker object to designate between good messages and
> unparseable messages.  For some reason, returning None from the except
> clause in _factory() caused Python 2.2.1 to exit early out of the for
> loop.

Note that I pasted this _factory function from split.py, so if this _factory
was in trouble so is that one.  Ditto splitn.py.  GBayes.py's _factory
returns an empty string, and since we don't know why None caused a problem,
perhaps *any* false value does too.