yuja added a comment.

  > +        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?

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3845

To: hooper, #hg-reviewers
Cc: yuja, durin42, mercurial-devel
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to