Skip to content

Commit 4a7b63b

Browse files
committed
Remove cbor2 module to cbor to avoid name conflict
1 parent d025eef commit 4a7b63b

File tree

9 files changed

+8
-8
lines changed

9 files changed

+8
-8
lines changed

pycardano/address.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from cbor2 import CBORTag
1818
from typing_extensions import override
1919

20-
from pycardano.cbor2 import cbor2
20+
from pycardano.cbor import cbor2
2121
from pycardano.crypto.bech32 import decode, encode
2222
from pycardano.exception import (
2323
DecodingException,

pycardano/backend/blockfrost.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
GenesisParameters,
1616
ProtocolParameters,
1717
)
18-
from pycardano.cbor2 import cbor2
18+
from pycardano.cbor import cbor2
1919
from pycardano.exception import TransactionFailedException
2020
from pycardano.hash import SCRIPT_HASH_SIZE, DatumHash, ScriptHash
2121
from pycardano.nativescript import NativeScript

pycardano/backend/cardano_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
GenesisParameters,
2424
ProtocolParameters,
2525
)
26-
from pycardano.cbor2 import cbor2
26+
from pycardano.cbor import cbor2
2727
from pycardano.exception import (
2828
CardanoCliError,
2929
PyCardanoException,
File renamed without changes.

pycardano/plutus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from nacl.hash import blake2b
1616
from typeguard import typechecked
1717

18-
from pycardano.cbor2 import cbor2
18+
from pycardano.cbor import cbor2
1919
from pycardano.exception import DeserializeException, InvalidArgumentException
2020
from pycardano.hash import DATUM_HASH_SIZE, SCRIPT_HASH_SIZE, DatumHash, ScriptHash
2121
from pycardano.nativescript import NativeScript

pycardano/serialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
get_type_hints,
3232
)
3333

34-
from pycardano.cbor2 import cbor2
34+
from pycardano.cbor import cbor2
3535
from pycardano.logging import logger
3636

3737
# Remove the semantic decoder for 258 (CBOR tag for set) as we care about the order of elements

pycardano/transaction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from pprintpp import pformat
1313

1414
from pycardano.address import Address
15-
from pycardano.cbor2 import cbor2
15+
from pycardano.cbor import cbor2
1616
from pycardano.certificate import Certificate
1717
from pycardano.exception import InvalidDataException
1818
from pycardano.governance import ProposalProcedure, VotingProcedures

pycardano/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from nacl.hash import blake2b
1111

1212
from pycardano.backend.base import ChainContext
13-
from pycardano.cbor2 import cbor2
13+
from pycardano.cbor import cbor2
1414
from pycardano.hash import SCRIPT_DATA_HASH_SIZE, SCRIPT_HASH_SIZE, ScriptDataHash
1515
from pycardano.plutus import COST_MODELS, CostModels, Datum, RedeemerMap, Redeemers
1616
from pycardano.serialization import NonEmptyOrderedSet, default_encoder

test/pycardano/test_serialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
VerificationKey,
3535
VerificationKeyWitness,
3636
)
37-
from pycardano.cbor2 import cbor2
37+
from pycardano.cbor import cbor2
3838
from pycardano.exception import (
3939
DeserializeException,
4040
InvalidKeyTypeException,

0 commit comments

Comments
 (0)