mercurial/thirdparty/cbor/__init__.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Tue, 09 Apr 2024 14:36:01 +0200
changeset 51573 4a9d0898bf16
parent 37214 3bc609bcfe77
permissions -rw-r--r--
bundlespec: fix the "streamv2" and "streamv3-exp" variant In c4aab3661f25, we broken this feature by adding unicode instead of bytes to the dictionary. On the other hand, this feature was never tested, so augment the tests to tests this.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
37214
3bc609bcfe77 cbor: import CBORDecoder and CBOREncoder
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37128
diff changeset
     1
from .cbor2 import (
3bc609bcfe77 cbor: import CBORDecoder and CBOREncoder
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37128
diff changeset
     2
    CBORDecodeError,
3bc609bcfe77 cbor: import CBORDecoder and CBOREncoder
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37128
diff changeset
     3
    CBORDecoder,
3bc609bcfe77 cbor: import CBORDecoder and CBOREncoder
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37128
diff changeset
     4
    CBOREncodeError,
3bc609bcfe77 cbor: import CBORDecoder and CBOREncoder
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37128
diff changeset
     5
    CBOREncoder,
3bc609bcfe77 cbor: import CBORDecoder and CBOREncoder
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37128
diff changeset
     6
    dump,
3bc609bcfe77 cbor: import CBORDecoder and CBOREncoder
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37128
diff changeset
     7
    dumps,
3bc609bcfe77 cbor: import CBORDecoder and CBOREncoder
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37128
diff changeset
     8
    load,
3bc609bcfe77 cbor: import CBORDecoder and CBOREncoder
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37128
diff changeset
     9
    loads,
3bc609bcfe77 cbor: import CBORDecoder and CBOREncoder
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37128
diff changeset
    10
)