summaryrefslogtreecommitdiff
path: root/Lib/traceback.py
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2012-10-01 12:53:43 -0700
committerPhilip Jenvey <pjenvey@underboss.org>2012-10-01 12:53:43 -0700
commit0098a5334c33f4ca504733df67e66fb762c9df1c (patch)
tree1128bd7321ce7c82333219f3fbf690aca5feef4f /Lib/traceback.py
parent42ad533dac5f08f8f113383fd03642f902c88105 (diff)
downloadcpython-0098a5334c33f4ca504733df67e66fb762c9df1c.tar.gz
utilize yield from
Diffstat (limited to 'Lib/traceback.py')
-rw-r--r--Lib/traceback.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/traceback.py b/Lib/traceback.py
index eeb9e7387c..33b86c7e6e 100644
--- a/Lib/traceback.py
+++ b/Lib/traceback.py
@@ -132,8 +132,7 @@ def _iter_chain(exc, custom_tb=None, seen=None):
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):