Skip to content

Commit eea7ae1

Browse files
committed
Prefix py2_(x|lx|b2x|b2lx) with _
Internal stuff [ yapified by gitreformat (github/ghtdak) on Mon Nov 30 21:11:21 2015 ]
1 parent c107b9e commit eea7ae1

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

bitcoin/core/__init__.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def MoneyRange(nValue):
3333
return 0 <= nValue <= MAX_MONEY
3434

3535

36-
def py2_x(h):
36+
def _py2_x(h):
3737
"""Convert a hex string to bytes"""
3838
return binascii.unhexlify(h)
3939

@@ -43,7 +43,7 @@ def x(h):
4343
return binascii.unhexlify(h.encode('utf8'))
4444

4545

46-
def py2_b2x(b):
46+
def _py2_b2x(b):
4747
"""Convert bytes to a hex string"""
4848
return binascii.hexlify(b)
4949

@@ -53,7 +53,7 @@ def b2x(b):
5353
return binascii.hexlify(b).decode('utf8')
5454

5555

56-
def py2_lx(h):
56+
def _py2_lx(h):
5757
"""Convert a little-endian hex string to bytes
5858
5959
Lets you write uint256's and uint160's the way the Satoshi codebase shows
@@ -71,7 +71,7 @@ def lx(h):
7171
return binascii.unhexlify(h.encode('utf8'))[::-1]
7272

7373

74-
def py2_b2lx(b):
74+
def _py2_b2lx(b):
7575
"""Convert bytes to a little-endian hex string
7676
7777
Lets you show uint256's and uint160's the way the Satoshi codebase shows
@@ -90,15 +90,15 @@ def b2lx(b):
9090

9191

9292
if not (sys.version > '3'):
93-
x = py2_x
94-
b2x = py2_b2x
95-
lx = py2_lx
96-
b2lx = py2_b2lx
97-
98-
del py2_x
99-
del py2_b2x
100-
del py2_lx
101-
del py2_b2lx
93+
x = _py2_x
94+
b2x = _py2_b2x
95+
lx = _py2_lx
96+
b2lx = _py2_b2lx
97+
98+
del _py2_x
99+
del _py2_b2x
100+
del _py2_lx
101+
del _py2_b2lx
102102

103103

104104
def str_money_value(value):

0 commit comments

Comments
 (0)