Avoid shadowing a variable name.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
64664bc614
commit
3aa38fb3c9
|
@ -4,8 +4,8 @@ import json
|
||||||
|
|
||||||
|
|
||||||
def chunk(h):
|
def chunk(h):
|
||||||
h = str(h, 'utf-8')
|
hstr = str(h, 'utf-8')
|
||||||
return '0x' + ', 0x'.join([h[i:i+2] for i in range(0, len(h), 2)])
|
return '0x' + ', 0x'.join([hstr[i:i+2] for i in range(0, len(hstr), 2)])
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue