From: Raymond Hettinger Date: Thu, 16 Sep 2010 08:06:05 +0000 (+0000) Subject: Remove unneeded exception chaining. X-Git-Tag: v3.2a3~246 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c1cc0d08d4f713472728aee78cf07d0066c9a298;p=thirdparty%2FPython%2Fcpython.git Remove unneeded exception chaining. --- diff --git a/Lib/collections.py b/Lib/collections.py index f73b0f75909a..68e9b2807acd 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