From 4993cc0a5b34dc91da2b41c50e33d809f0191355 Mon Sep 17 00:00:00 2001 From: Philip Jenvey Date: Mon, 1 Oct 2012 12:53:43 -0700 Subject: utilize yield from --- Lib/argparse.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Lib/argparse.py') 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): -- cgit v1.2.3