We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e42bda9 commit e04f47cCopy full SHA for e04f47c
Lib/json/tool.py
@@ -55,7 +55,7 @@ def main():
55
infile = open(options.infile, encoding='utf-8')
56
try:
57
if options.json_lines:
58
- objs = (json.loads(line) for line in infile)
+ objs = tuple(json.loads(line) for line in infile)
59
else:
60
objs = (json.load(infile),)
61
finally:
0 commit comments