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/argparse.py | |
parent | 075bbb176f69e3da013e39d847caaea9b0cee334 (diff) | |
download | cpython-4993cc0a5b34dc91da2b41c50e33d809f0191355.tar.gz cpython-4993cc0a5b34dc91da2b41c50e33d809f0191355.zip |
utilize yield from
Diffstat (limited to 'Lib/argparse.py')
-rw-r--r-- | Lib/argparse.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/argparse.py b/Lib/argparse.py index f25b1b66109..202f2cb9727 100644 --- a/Lib/argparse.py +++ b/Lib/argparse.py @@ -606,8 +606,7 @@ class HelpFormatter(object): pass else: self._indent() - for subaction in get_subactions(): - yield subaction + yield from get_subactions() self._dedent() def _split_lines(self, text, width): |