Use repr for faultCode in Fault.__repr__
issue2742 review467002 (transplanted from 56c1da6e515b54c3148c772ccc950fd051286de3)
This commit is contained in:
1 parent
a6a099be17
commit
c50ddfe8bc
1 file changed
+5
@@ -32,6 +32,11 @@ class Fault(xmlrpclib.Fault):
|
||||
super(Fault, self).__init__(faultCode, faultString, **extra)
|
||||
self.args = faultString
|
||||
|
||||
def __repr__(self):
|
||||
return (
|
||||
"<Fault %s: %s>" %
|
||||
(repr(self.faultCode), repr(self.faultString))
|
||||
)
|
||||
|
||||
class ProtocolError(xmlrpclib.ProtocolError):
|
||||
pass
|
||||
|
||||
Reference in new issue
Block a user