Avoid shadowing a variable name.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2018-06-04 15:31:12 +01:00
parent 64664bc614
commit 3aa38fb3c9
1 changed files with 2 additions and 2 deletions

View File

@ -4,8 +4,8 @@ import json
def chunk(h):
h = str(h, 'utf-8')
return '0x' + ', 0x'.join([h[i:i+2] for i in range(0, len(h), 2)])
hstr = str(h, 'utf-8')
return '0x' + ', 0x'.join([hstr[i:i+2] for i in range(0, len(hstr), 2)])
#