mirror of
https://github.com/python/cpython.git
synced 2025-10-12 18:02:39 +00:00
Change docstring for xdrlib.Error to use new style exceptions.
This commit is contained in:
parent
bcac6ad1f3
commit
42d5c41522
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ __all__ = ["Error", "Packer", "Unpacker", "ConversionError"]
|
||||||
class Error(Exception):
|
class Error(Exception):
|
||||||
"""Exception class for this module. Use:
|
"""Exception class for this module. Use:
|
||||||
|
|
||||||
except xdrlib.Error, var:
|
except xdrlib.Error as var:
|
||||||
# var has the Error instance for the exception
|
# var has the Error instance for the exception
|
||||||
|
|
||||||
Public ivars:
|
Public ivars:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue