mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
Update sandbox/grist/imports/import_csv.py
Co-authored-by: Alex Hall <alex.mojaki@gmail.com>
This commit is contained in:
parent
ce31d1632d
commit
045227cb52
@ -107,7 +107,7 @@ def _guess_dialect(file_obj):
|
||||
try:
|
||||
# Restrict allowed delimiters to prevent guessing other char than this list.
|
||||
dialect = csv.Sniffer().sniff(file_obj.read(100000), delimiters=['\t', ',', ';', '|'])
|
||||
log.info("Guessed dialect %s" % dict(dialect.__dict__))
|
||||
log.info("Guessed dialect %s", dict(dialect.__dict__))
|
||||
# Mimic messytables default for now.
|
||||
dialect.lineterminator = "\n"
|
||||
dialect.doublequote = True
|
||||
|
Loading…
Reference in New Issue
Block a user