From: Andrew Svetlov Date: Thu, 1 Nov 2012 11:43:06 +0000 (+0200) Subject: Change docstring for xdrlib.Error to use new style exceptions. X-Git-Tag: v3.2.4rc1~384 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=42d5c415224cf0bae36c74840b0d1c481f3ee99b;p=thirdparty%2FPython%2Fcpython.git Change docstring for xdrlib.Error to use new style exceptions. --- diff --git a/Lib/xdrlib.py b/Lib/xdrlib.py index 4e4867704057..29639159cb8d 100644 --- a/Lib/xdrlib.py +++ b/Lib/xdrlib.py @@ -13,7 +13,7 @@ __all__ = ["Error", "Packer", "Unpacker", "ConversionError"] 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: