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.3.1rc1~706^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=42d5c415224cf0bae36c74840b0d1c481f3ee99b;p=python Change docstring for xdrlib.Error to use new style exceptions. --- diff --git a/Lib/xdrlib.py b/Lib/xdrlib.py index 4e48677040..29639159cb 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: