mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
[Bug #1164912] Ensure Datetime wrapper class .value attribute is an 8-bit string, not a Unicode string
This commit is contained in:
parent
47a39b0112
commit
bdb3901001
2 changed files with 11 additions and 0 deletions
|
@ -388,6 +388,7 @@ class DateTime:
|
|||
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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue