[Python-checkins] r84844 - python/branches/py3k/Lib/collections.py

raymond.hettinger python-checkins at python.org
Thu Sep 16 10:06:05 CEST 2010


Author: raymond.hettinger
Date: Thu Sep 16 10:06:05 2010
New Revision: 84844
Log:
Remove unneeded exception chaining.
Modified:
 python/branches/py3k/Lib/collections.py
Modified: python/branches/py3k/Lib/collections.py
==============================================================================
--- python/branches/py3k/Lib/collections.py	(original)
+++ python/branches/py3k/Lib/collections.py	Thu Sep 16 10:06:05 2010
@@ -306,7 +306,7 @@
 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


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /