pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/nodejs/node/commit/99a653e9eec6bc4df810225b1e77b3595e1e7d22

mer-b69241e157469407.css" /> build: make compress_json python3 compatible · nodejs/node@99a653e · GitHub
Skip to content

Commit 99a653e

Browse files
thefourtheyeMylesBorins
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 1c7f6a5 commit 99a653e

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] 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy