Don't need line_buffering=True here, refs #230

This commit is contained in:
Simon Willison 2021-02-15 11:18:28 -08:00
commit 1f49f32814

View file

@ -686,7 +686,7 @@ def insert_upsert_implementation(
raise click.ClickException("--encoding must be used with --csv or --tsv")
encoding = encoding or "utf-8"
buffered = io.BufferedReader(json_file, buffer_size=4096)
decoded = io.TextIOWrapper(buffered, encoding=encoding, line_buffering=True)
decoded = io.TextIOWrapper(buffered, encoding=encoding)
if pk and len(pk) == 1:
pk = pk[0]
if csv or tsv: