diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-07-22 09:14:52 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-07-22 09:14:52 (GMT) |
commit | 0c937b3ed6d2eeca84fa4aca1a9aef685db65abc (patch) | |
tree | f5691e459361ce03018098bbad26f9472e8340e5 /Lib/xmlrpc | |
parent | fbc877b7940beaa23fea020b8a137a660eff419e (diff) | |
download | cpython-0c937b3ed6d2eeca84fa4aca1a9aef685db65abc.zip cpython-0c937b3ed6d2eeca84fa4aca1a9aef685db65abc.tar.gz cpython-0c937b3ed6d2eeca84fa4aca1a9aef685db65abc.tar.bz2 |
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.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ 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__ |