commit | 4993cc0a5b34dc91da2b41c50e33d809f0191355 | [log] [tgz] |
---|---|---|
author | Philip Jenvey <pjenvey@underboss.org> | Mon Oct 01 12:53:43 2012 -0700 |
committer | Philip Jenvey <pjenvey@underboss.org> | Mon Oct 01 12:53:43 2012 -0700 |
tree | 5f4a1327469a43d4bbaa876e13e22a316731775d | |
parent | 075bbb176f69e3da013e39d847caaea9b0cee334 [diff] [blame] |
utilize yield from
diff --git a/Lib/traceback.py b/Lib/traceback.py index eeb9e73..33b86c7 100644 --- a/Lib/traceback.py +++ b/Lib/traceback.py
@@ -132,8 +132,7 @@ its.append([(exc, custom_tb or exc.__traceback__)]) # itertools.chain is in an extension module and may be unavailable for it in its: - for x in it: - yield x + yield from it def print_exception(etype, value, tb, limit=None, file=None, chain=True):