[Python-checkins] cpython (merge 3.3 -> default): Merge: change docstring for xdrlib.Error to use new style exceptions.

andrew.svetlov python-checkins at python.org
Thu Nov 1 12:43:56 CET 2012


http://hg.python.org/cpython/rev/5216c392239a
changeset:   80154:5216c392239a
parent:      80151:e67c8803cd82
parent:      80153:23ebe277e982
user:        Andrew Svetlov <andrew.svetlov at gmail.com>
date:        Thu Nov 01 13:43:43 2012 +0200
summary:
  Merge: change docstring for xdrlib.Error to use new style exceptions.

files:
  Lib/xdrlib.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/xdrlib.py b/Lib/xdrlib.py
--- a/Lib/xdrlib.py
+++ b/Lib/xdrlib.py
@@ -13,7 +13,7 @@
 class Error(Exception):
     """Exception class for this module. Use:
 
-    except xdrlib.Error, var:
+    except xdrlib.Error as var:
         # var has the Error instance for the exception
 
     Public ivars:

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


More information about the Python-checkins mailing list