[Python-checkins] cpython (merge 3.3 -> default): merge

raymond.hettinger python-checkins at python.org
Fri May 17 11:29:41 CEST 2013


http://hg.python.org/cpython/rev/1babfb6261fa
changeset:   83811:1babfb6261fa
parent:      83809:9ff8b6d4d479
parent:      83810:17fcdaddbaa7
user:        Raymond Hettinger <python at rcn.com>
date:        Fri May 17 02:29:27 2013 -0700
summary:
  merge

files:
  Lib/collections/__init__.py |  5 +----
  1 files changed, 1 insertions(+), 4 deletions(-)


diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py
--- a/Lib/collections/__init__.py
+++ b/Lib/collections/__init__.py
@@ -363,10 +363,7 @@
     # Execute the template string in a temporary namespace and support
     # tracing utilities by setting a value for frame.f_globals['__name__']
     namespace = dict(__name__='namedtuple_%s' % typename)
-    try:
-        exec(class_definition, namespace)
-    except SyntaxError as e:
-        raise SyntaxError(e.msg + ':\n\n' + class_definition)
+    exec(class_definition, namespace)
     result = namespace[typename]
     result._source = class_definition
     if verbose:

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list