mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
utilize yield from
This commit is contained in:
parent
075bbb176f
commit
4993cc0a5b
11 changed files with 18 additions and 36 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue