cbor2: Remove u-module prefix from imports.

pull/624/head
iabdalkader 2023-03-02 15:34:39 +01:00 zatwierdzone przez Damien George
rodzic 40dfc5fbc5
commit b9741f6584
2 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -24,8 +24,8 @@ THE SOFTWARE.
""" """
import uio import io
import ustruct as struct import struct
class CBORDecodeError(Exception): class CBORDecodeError(Exception):
@ -248,7 +248,7 @@ def loads(payload, **kwargs):
:param kwargs: keyword arguments passed to :class:`~.CBORDecoder` :param kwargs: keyword arguments passed to :class:`~.CBORDecoder`
:return: the deserialized object :return: the deserialized object
""" """
fp = uio.BytesIO(payload) fp = io.BytesIO(payload)
return CBORDecoder(fp, **kwargs).decode() return CBORDecoder(fp, **kwargs).decode()

Wyświetl plik

@ -24,9 +24,9 @@ THE SOFTWARE.
""" """
import uio import io
import math import math
import ustruct as struct import struct
class CBOREncodeError(Exception): class CBOREncodeError(Exception):
@ -169,7 +169,7 @@ def dumps(obj, **kwargs):
:return: the serialized output :return: the serialized output
:rtype: bytes :rtype: bytes
""" """
fp = uio.BytesIO() fp = io.BytesIO()
dump(obj, fp, **kwargs) dump(obj, fp, **kwargs)
return fp.getvalue() return fp.getvalue()