From 0a3078f1ccdde14d44ed7bc3af76af16327ec99f Mon Sep 17 00:00:00 2001 From: Collin Winter Date: Fri, 9 Feb 2007 14:50:40 +0000 Subject: [PATCH] Fix off-by-one indentation error --- pep-3109.txt | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/pep-3109.txt b/pep-3109.txt index f7498ac21..aa6e99e73 100644 --- a/pep-3109.txt +++ b/pep-3109.txt @@ -215,24 +215,24 @@ The following translations will be performed: 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