mirror of https://github.com/python/cpython.git
Merge: change docstring for xdrlib.Error to use new style exceptions.
This commit is contained in:
commit
700835a57e
|
@ -13,7 +13,7 @@
|
||||||
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…
Reference in New Issue