We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b95b905 commit ace4440Copy full SHA for ace4440
multiaddr/multiaddr.py
@@ -42,8 +42,7 @@ def __init__(self, addr):
42
# obvious case of a “binary-encoded” multiaddr starting with a slash
43
# and decode it into text
44
if six.PY2 and isinstance(addr, str) and addr.startswith("/"):
45
- import locale
46
- addr = addr.decode(locale.getpreferredencoding())
+ addr = addr.decode("utf-8")
47
48
if isinstance(addr, six.text_type):
49
self._bytes = string_to_bytes(addr)
0 commit comments