[Python-checkins] cpython (3.2): Change docstring for xdrlib.Error to use new style exceptions.
andrew.svetlov
python-checkins at python.org
Thu Nov 1 12:43:53 CET 2012
http://hg.python.org/cpython/rev/e95e647040de
changeset: 80152:e95e647040de
branch: 3.2
parent: 80149:8e95a078d490
user: Andrew Svetlov <andrew.svetlov at gmail.com>
date: Thu Nov 01 13:43:06 2012 +0200
summary:
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