GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tools: prepare ./tools/compress_json.py for Python 3 · nodejs/node@5cbc0db

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tools
    • compress_json.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tools/compress_json.py‎

Copy file name to clipboardExpand all lines: tools/compress_json.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
import sys
66
import zlib
77

8+
try:
9+
xrange # Python 2
10+
except NameError:
11+
xrange = range # Python 3
12+
13+
814
if __name__ == '__main__':
915
fp = open(sys.argv[1])
1016
obj = json.load(fp)

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.