mirror of
https://github.com/python/cpython.git
synced 2025-08-12 04:49:01 +00:00
Update uses of string exceptions
This commit is contained in:
parent
0bef15846f
commit
d9a9c1066c
4 changed files with 7 additions and 9 deletions
|
@ -80,9 +80,9 @@ class Packer(xdr.Packer):
|
|||
|
||||
|
||||
# Exceptions
|
||||
BadRPCFormat = 'rpc.BadRPCFormat'
|
||||
BadRPCVersion = 'rpc.BadRPCVersion'
|
||||
GarbageArgs = 'rpc.GarbageArgs'
|
||||
class BadRPCFormat(Exception): pass
|
||||
class BadRPCVersion(Exception): pass
|
||||
class GarbageArgs(Exception): pass
|
||||
|
||||
class Unpacker(xdr.Unpacker):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue