summaryrefslogtreecommitdiffstats
path: root/Lib/mailbox.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/mailbox.py')
-rw-r--r--Lib/mailbox.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/mailbox.py b/Lib/mailbox.py
index d3bf3fd..0fea216 100644
--- a/Lib/mailbox.py
+++ b/Lib/mailbox.py
@@ -631,8 +631,7 @@ class _singlefileMailbox(Mailbox):
def iterkeys(self):
"""Return an iterator over keys."""
self._lookup()
- for key in self._toc.keys():
- yield key
+ yield from self._toc.keys()
def __contains__(self, key):
"""Return True if the keyed message exists, False otherwise."""