]> granicus.if.org Git - python/commitdiff
Change docstring for xdrlib.Error to use new style exceptions.
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Thu, 1 Nov 2012 11:43:06 +0000 (13:43 +0200)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Thu, 1 Nov 2012 11:43:06 +0000 (13:43 +0200)
Lib/xdrlib.py

index 4e4867704057247ea6a237eef1906f3a668b72d1..29639159cb8db59d3d96c530310915ee39a8d4b7 100644 (file)
@@ -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: