diff options
author | Philip Jenvey <pjenvey@underboss.org> | 2012-10-01 19:53:43 (GMT) |
---|---|---|
committer | Philip Jenvey <pjenvey@underboss.org> | 2012-10-01 19:53:43 (GMT) |
commit | 4993cc0a5b34dc91da2b41c50e33d809f0191355 (patch) | |
tree | 5f4a1327469a43d4bbaa876e13e22a316731775d /Lib/mailbox.py | |
parent | 075bbb176f69e3da013e39d847caaea9b0cee334 (diff) | |
download | cpython-4993cc0a5b34dc91da2b41c50e33d809f0191355.zip cpython-4993cc0a5b34dc91da2b41c50e33d809f0191355.tar.gz cpython-4993cc0a5b34dc91da2b41c50e33d809f0191355.tar.bz2 |
utilize yield from
Diffstat (limited to 'Lib/mailbox.py')
-rw-r--r-- | Lib/mailbox.py | 3 |
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.""" |