diff options
Diffstat (limited to 'Lib/mailbox.py')
-rwxr-xr-x | Lib/mailbox.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/mailbox.py b/Lib/mailbox.py index 98e61f2e07..b1c082dd53 100755 --- a/Lib/mailbox.py +++ b/Lib/mailbox.py @@ -15,7 +15,7 @@ class _Mailbox: self.factory = factory def __iter__(self): - return self + return iter(self.next, None) def next(self): while 1: @@ -195,7 +195,7 @@ class MHMailbox: self.factory = factory def __iter__(self): - return self + return iter(self.next, None) def next(self): if not self.boxes: @@ -226,7 +226,7 @@ class Maildir: self.boxes = boxes def __iter__(self): - return self + return iter(self.next, None) def next(self): if not self.boxes: |