]> granicus.if.org Git - python/commit
Fix test_pickle, by reverting the string opcodes (S, T, U) to returning
authorGuido van Rossum <guido@python.org>
Thu, 19 Jul 2007 22:19:35 +0000 (22:19 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 19 Jul 2007 22:19:35 +0000 (22:19 +0000)
commitf93254d2992896445cbd1eec0ee4a80eb8edc6b8
tree72978d19d4170da77eb68d07ecff3833fb35e349
parent00058aa28c8215562995593c57ff9388e2bdb266
Fix test_pickle, by reverting the string opcodes (S, T, U) to returning
strings, in Latin-1.  Bytes are once more pickled through bytes.__reduce__,
but now it returns "latin-1" as the second parameter.

Unfortunately this breaks datetime pickling.  I'll have to investigate
further; reverting Martin's changes doesn't seem to help.
Lib/pickle.py
Objects/bytesobject.c