File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
python-ecosys/cbor2/cbor2 Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2424"""
2525
2626
27- import uio
28- import ustruct as struct
27+ import io
28+ import struct
2929
3030
3131class CBORDecodeError (Exception ):
@@ -248,7 +248,7 @@ def loads(payload, **kwargs):
248248 :param kwargs: keyword arguments passed to :class:`~.CBORDecoder`
249249 :return: the deserialized object
250250 """
251- fp = uio .BytesIO (payload )
251+ fp = io .BytesIO (payload )
252252 return CBORDecoder (fp , ** kwargs ).decode ()
253253
254254
Original file line number Diff line number Diff line change 2424"""
2525
2626
27- import uio
27+ import io
2828import math
29- import ustruct as struct
29+ import struct
3030
3131
3232class CBOREncodeError (Exception ):
@@ -169,7 +169,7 @@ def dumps(obj, **kwargs):
169169 :return: the serialized output
170170 :rtype: bytes
171171 """
172- fp = uio .BytesIO ()
172+ fp = io .BytesIO ()
173173 dump (obj , fp , ** kwargs )
174174 return fp .getvalue ()
175175
You can’t perform that action at this time.
0 commit comments