Skip to content

Commit b9741f6

Browse files
iabdalkaderdpgeorge
authored andcommitted
cbor2: Remove u-module prefix from imports.
1 parent 40dfc5f commit b9741f6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

python-ecosys/cbor2/cbor2/decoder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"""
2525

2626

27-
import uio
28-
import ustruct as struct
27+
import io
28+
import struct
2929

3030

3131
class 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

python-ecosys/cbor2/cbor2/encoder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
"""
2525

2626

27-
import uio
27+
import io
2828
import math
29-
import ustruct as struct
29+
import struct
3030

3131

3232
class 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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy