[Python-checkins] r53695 - peps/trunk/pep-3109.txt

collin.winter python-checkins at python.org
Fri Feb 9 15:50:40 CET 2007


Author: collin.winter
Date: Fri Feb  9 15:50:40 2007
New Revision: 53695

Modified:
   peps/trunk/pep-3109.txt
Log:
Fix off-by-one indentation error

Modified: peps/trunk/pep-3109.txt
==============================================================================
--- peps/trunk/pep-3109.txt	(original)
+++ peps/trunk/pep-3109.txt	Fri Feb  9 15:50:40 2007
@@ -215,24 +215,24 @@
           except E as V:
               handle(V)
               
-    2. ``raise E, V`` as a way of "casting" an exception to another
-       class. Taking an example from
-       distutils.compiler.unixcompiler ::
-       
-            try:
-                self.spawn(pp_args)
-            except DistutilsExecError as msg:
-                raise CompileError(msg)
-                
-       This would be better expressed as ::
-       
-            try:
-                self.spawn(pp_args)
-            except DistutilsExecError as msg:
-                raise CompileError from msg
-   
-       Using the ``raise ... from ...`` syntax introduced in
-       PEP 344.
+   2. ``raise E, V`` as a way of "casting" an exception to another
+      class. Taking an example from
+      distutils.compiler.unixcompiler ::
+      
+           try:
+               self.spawn(pp_args)
+           except DistutilsExecError as msg:
+               raise CompileError(msg)
+               
+      This would be better expressed as ::
+      
+           try:
+               self.spawn(pp_args)
+           except DistutilsExecError as msg:
+               raise CompileError from msg
+  
+      Using the ``raise ... from ...`` syntax introduced in
+      PEP 344.
 
 
 References


More information about the Python-checkins mailing list