Commit 4e891e4a authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 7fbd77cb
......@@ -47,8 +47,7 @@ import (
"lab.nexedi.com/kirr/neo/go/zodb/internal/pickletools"
)
// XXX Length is like BTrees.Length.Length.
// XXX tests.
// Length is equivalent of BTrees.Length.Length in BTree/py.
type Length struct {
zodb.Persistent
......@@ -74,7 +73,7 @@ func (l *lengthState) PySetState(pystate interface{}) (err error) {
return fmt.Errorf("state must be int; got %T", pystate)
}
l.value = int(v) // XXX casting ok?
l.value = int(v)
return nil
}
......
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