D3845: worker: support more return types in posix worker
Yuya Nishihara
yuya at tcha.org
Tue Jul 3 08:37:32 EDT 2018
> + while True:
> + try:
> + yield cbor.load(fp)
> + except EOFError:
> + break
Unfortunately this doesn't work because the cbor decoder doesn't care for
EOF. It tries to raise CBORDEcodeError and fail at `fp.tell()`. We'll have
to either fix the upstream cbor library or duplicate some parts to cborutil.
(or add an extra length field to feed a single chunk to `cbor.loads()`.)
This makes me feel that pickle is "okay" tool. @durin42, any idea?
More information about the Mercurial-devel
mailing list