summaryrefslogtreecommitdiff
path: root/Lib/xmlrpc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-07-22 12:14:52 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2014-07-22 12:14:52 +0300
commit96367f7260ed4fe01c56bf36356fb983281d2dbd (patch)
tree532b275e2501543a6fc1607f2b7ccdec91a24862 /Lib/xmlrpc
parent15fef99c0a296af81ea465d75944763d8a9af30d (diff)
downloadcpython-96367f7260ed4fe01c56bf36356fb983281d2dbd.tar.gz
Issue #22031: Reprs now always use hexadecimal format with the "0x" prefix
when contain an id in form " at 0x...".
Diffstat (limited to 'Lib/xmlrpc')
-rw-r--r--Lib/xmlrpc/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/xmlrpc/client.py b/Lib/xmlrpc/client.py
index 567554da37..d46f32c8df 100644
--- a/Lib/xmlrpc/client.py
+++ b/Lib/xmlrpc/client.py
@@ -354,7 +354,7 @@ class DateTime:
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 @@ class MultiCall:
self.__call_list = []
def __repr__(self):
- return "<MultiCall at %x>" % id(self)
+ return "<MultiCall at %#x>" % id(self)
__str__ = __repr__