File tree 2 files changed +6
-6
lines changed
python-ecosys/cbor2/cbor2 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 24
24
"""
25
25
26
26
27
- import uio
28
- import ustruct as struct
27
+ import io
28
+ import struct
29
29
30
30
31
31
class CBORDecodeError (Exception ):
@@ -248,7 +248,7 @@ def loads(payload, **kwargs):
248
248
:param kwargs: keyword arguments passed to :class:`~.CBORDecoder`
249
249
:return: the deserialized object
250
250
"""
251
- fp = uio .BytesIO (payload )
251
+ fp = io .BytesIO (payload )
252
252
return CBORDecoder (fp , ** kwargs ).decode ()
253
253
254
254
Original file line number Diff line number Diff line change 24
24
"""
25
25
26
26
27
- import uio
27
+ import io
28
28
import math
29
- import ustruct as struct
29
+ import struct
30
30
31
31
32
32
class CBOREncodeError (Exception ):
@@ -169,7 +169,7 @@ def dumps(obj, **kwargs):
169
169
:return: the serialized output
170
170
:rtype: bytes
171
171
"""
172
- fp = uio .BytesIO ()
172
+ fp = io .BytesIO ()
173
173
dump (obj , fp , ** kwargs )
174
174
return fp .getvalue ()
175
175
You can’t perform that action at this time.
0 commit comments