Skip to content

Commit

Permalink
Merge pull request #303 from sobolevn/patch-1
Browse files Browse the repository at this point in the history
Clear `i` var from loop not to leak into module namespace
  • Loading branch information
etrepum committed Nov 16, 2022
2 parents 66c62d8 + 2e87970 commit edde4ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions simplejson/encoder.py
Expand Up @@ -32,6 +32,7 @@ def _import_speedups():
for i in range(0x20):
#ESCAPE_DCT.setdefault(chr(i), '\\u{0:04x}'.format(i))
ESCAPE_DCT.setdefault(chr(i), '\\u%04x' % (i,))
del i

FLOAT_REPR = repr

Expand Down

0 comments on commit edde4ef

Please sign in to comment.