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 ed60cda commit a2fcfa2Copy full SHA for a2fcfa2
1 file changed
Lib/json/tool.py
@@ -88,7 +88,8 @@ def main():
88
infile = open(options.infile, encoding='utf-8')
89
try:
90
if options.json_lines:
91
- objs = tuple(json.loads(line) for line in infile)
+ lines = infile.readlines()
92
+ objs = (json.loads(line) for line in lines)
93
else:
94
objs = (json.load(infile),)
95
finally:
0 commit comments