Skip to content

Commit bc81a68

Browse files
thefourtheyeaddaleax
authored andcommitted
build: make compress_json python3 compatible
This patch replaces a usage of `map` with list comprehension, which makes the script Python 3 compatiable. PR-URL: #25582 Reviewed-By: Refael Ackermann <[email protected]>
1 parent 30949f8 commit bc81a68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎tools/compress_json.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
step=20
2626
slices= (data[i:i+step] foriinxrange(0, len(data), step))
27-
slices=map(lambdas: ','.join(str(ord(c)) forcins), slices)
27+
slices=[','.join(str(ord(c)) forcins)forsinslices]
2828
text=',\n'.join(slices)
2929

3030
fp=open(sys.argv[2], 'w')

0 commit comments

Comments
(0)