> + 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? _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel