]> granicus.if.org Git - python/commit
SF bug #461073: mailbox __iter__ bug, by Andrew Dalke.
authorGuido van Rossum <guido@python.org>
Thu, 13 Sep 2001 01:29:13 +0000 (01:29 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 13 Sep 2001 01:29:13 +0000 (01:29 +0000)
commit93a696f49171c0593b23817bbf56ab44269a9587
tree2805547859c04a93fe444492a7e3ab256c2b112f
parent1f47d11ff24bf1796a9a81ee6dcd07705acc407d
SF bug #461073: mailbox __iter__ bug, by Andrew Dalke.

Andrew quite correctly notices that the next() method isn't quite what
we need, since it returns None upon end instead of raising
StopIteration.  His fix is easy enough, using iter(self.next, None)
instead.
Lib/mailbox.py