diff options
author | Philip Jenvey <pjenvey@underboss.org> | 2012-10-01 12:53:43 -0700 |
---|---|---|
committer | Philip Jenvey <pjenvey@underboss.org> | 2012-10-01 12:53:43 -0700 |
commit | 4993cc0a5b34dc91da2b41c50e33d809f0191355 (patch) | |
tree | 5f4a1327469a43d4bbaa876e13e22a316731775d /Lib/email/_header_value_parser.py | |
parent | 075bbb176f69e3da013e39d847caaea9b0cee334 (diff) | |
download | cpython-git-4993cc0a5b34dc91da2b41c50e33d809f0191355.tar.gz |
utilize yield from
Diffstat (limited to 'Lib/email/_header_value_parser.py')
-rw-r--r-- | Lib/email/_header_value_parser.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/email/_header_value_parser.py b/Lib/email/_header_value_parser.py index 1924ed1588..b5964627e7 100644 --- a/Lib/email/_header_value_parser.py +++ b/Lib/email/_header_value_parser.py @@ -367,8 +367,7 @@ class TokenList(list): yield (indent + ' !! invalid element in token ' 'list: {!r}'.format(token)) else: - for line in token._pp(indent+' '): - yield line + yield from token._pp(indent+' ') if self.defects: extra = ' Defects: {}'.format(self.defects) else: |