mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-12 11:34:09 +02:00
Applied Black
This commit is contained in:
parent
5fd78e27d2
commit
0acbc68545
1 changed files with 3 additions and 1 deletions
|
|
@ -958,7 +958,9 @@ def insert_upsert_implementation(
|
|||
if sniff:
|
||||
# Read first 2048 bytes and use that to detect
|
||||
first_bytes = sniff_buffer.peek(2048)
|
||||
dialect = csv_std.Sniffer().sniff(first_bytes.decode(encoding, "ignore"))
|
||||
dialect = csv_std.Sniffer().sniff(
|
||||
first_bytes.decode(encoding, "ignore")
|
||||
)
|
||||
else:
|
||||
dialect = "excel-tab" if tsv else "excel"
|
||||
csv_reader_args = {"dialect": dialect}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue