Issue #22031: Reprs now always use hexadecimal format with the "0x" prefix
when contain an id in form " at 0x...".
diff --git a/Lib/xmlrpc/client.py b/Lib/xmlrpc/client.py
index 567554d..d46f32c 100644
--- a/Lib/xmlrpc/client.py
+++ b/Lib/xmlrpc/client.py
@@ -354,7 +354,7 @@
return self.value
def __repr__(self):
- return "<DateTime %r at %x>" % (self.value, id(self))
+ return "<DateTime %r at %#x>" % (self.value, id(self))
def decode(self, data):
self.value = str(data).strip()
@@ -846,7 +846,7 @@
self.__call_list = []
def __repr__(self):
- return "<MultiCall at %x>" % id(self)
+ return "<MultiCall at %#x>" % id(self)
__str__ = __repr__