Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bc81a68

Browse filesBrowse 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 <refack@gmail.com>
1 parent 30949f8 commit bc81a68
Copy full SHA for bc81a68

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎tools/compress_json.py‎

Copy file name to clipboardExpand all lines: tools/compress_json.py
+1-1Lines 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] for i in xrange(0, len(data), step))
27-
slices = map(lambda s: ','.join(str(ord(c)) for c in s), slices)
27+
slices = [','.join(str(ord(c)) for c in s) for s in slices]
2828
text = ',\n'.join(slices)
2929

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.