Commit 5ad5b2a4 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 8b4e080e
...@@ -429,6 +429,7 @@ func (zl *zLink) xuint64Unpack(xv interface{}) (uint64, bool) { ...@@ -429,6 +429,7 @@ func (zl *zLink) xuint64Unpack(xv interface{}) (uint64, bool) {
panic("bug") panic("bug")
case 'Z': case 'Z':
// pickles: str|bytes
v, err := pickletools.Xstrbytes8(xv) v, err := pickletools.Xstrbytes8(xv)
if err != nil { if err != nil {
return 0, false return 0, false
...@@ -436,6 +437,7 @@ func (zl *zLink) xuint64Unpack(xv interface{}) (uint64, bool) { ...@@ -436,6 +437,7 @@ func (zl *zLink) xuint64Unpack(xv interface{}) (uint64, bool) {
return v, true return v, true
case 'M': case 'M':
// msgpack decodes bytes as []byte (which corresponds to bytearray in pickle)
switch v := xv.(type) { switch v := xv.(type) {
default: default:
return 0, false return 0, false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment