commit | bdb3901001fbf8a4cb68da75cd05ad12f79efd03 | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Sun Dec 04 19:11:17 2005 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Sun Dec 04 19:11:17 2005 +0000 |
tree | 1f75e139974d0f0b2c8622ab227ef2851e8a485d | |
parent | 47a39b011262be0767165a0b4c1979f3975ef5d8 [diff] [blame] |
[Bug #1164912] Ensure Datetime wrapper class .value attribute is an 8-bit string, not a Unicode string
diff --git a/Lib/xmlrpclib.py b/Lib/xmlrpclib.py index 069ebcc..6fb6c68 100644 --- a/Lib/xmlrpclib.py +++ b/Lib/xmlrpclib.py
@@ -388,6 +388,7 @@ return "<DateTime %s at %x>" % (repr(self.value), id(self)) def decode(self, data): + data = str(data) self.value = string.strip(data) def encode(self, out):