summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-09-16 08:06:05 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-09-16 08:06:05 (GMT)
commitc1cc0d08d4f713472728aee78cf07d0066c9a298 (patch)
tree7ea7e8106eebcc00e9afda33065b021837ea1365
parent3255c63e28e52a5ffacf64cb8da62ffa2ad99643 (diff)
downloadcpython-c1cc0d08d4f713472728aee78cf07d0066c9a298.zip
cpython-c1cc0d08d4f713472728aee78cf07d0066c9a298.tar.gz
cpython-c1cc0d08d4f713472728aee78cf07d0066c9a298.tar.bz2
Remove unneeded exception chaining.
-rw-r--r--Lib/collections.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/collections.py b/Lib/collections.py
index f73b0f7..68e9b28 100644
--- a/Lib/collections.py
+++ b/Lib/collections.py
@@ -306,7 +306,7 @@ def namedtuple(typename, field_names, verbose=False, rename=False):
try:
exec(template, namespace)
except SyntaxError as e:
- raise SyntaxError(e.msg + ':\n' + template) from e
+ raise SyntaxError(e.msg + ':\n\n' + template)
result = namespace[typename]
# For pickling to work, the __module__ variable needs to be set to the frame