Skip to content

Commit 9f8f278

Browse files
author
Franziska Geiger
committed
Added file.flush in json.dump method
1 parent 0493b07 commit 9f8f278

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

graalpython/lib-python/3/json/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ def dump(obj, fp, *, skipkeys=False, ensure_ascii=True, check_circular=True,
178178
# a debuggability cost
179179
for chunk in iterable:
180180
fp.write(chunk)
181+
fp.flush()
181182

182183

183184
def dumps(obj, *, skipkeys=False, ensure_ascii=True, check_circular=True,

0 commit comments

Comments
 (0)