Skip to content

Commit ba3913d

Browse files
committed
Rename util.pycodecs/_util.py
1 parent ca849ae commit ba3913d

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

multiaddr/util.py renamed to multiaddr/codecs/_util.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
import six
2-
import struct
3-
4-
from .multiaddr import Multiaddr
5-
6-
71
if hasattr(int, 'from_bytes'):
82
def packed_net_bytes_to_int(b):
93
"""Convert the given big-endian byte-string to an int."""

multiaddr/codecs/ip4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import netaddr
44
import six
55

6-
from ..util import packed_net_bytes_to_int
6+
from ._util import packed_net_bytes_to_int
77

88

99
SIZE = 32

multiaddr/codecs/ip6.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import netaddr
44
import six
55

6-
from ..util import packed_net_bytes_to_int
6+
from ._util import packed_net_bytes_to_int
77

88

99
SIZE = 128

0 commit comments

Comments
 (0)