Update sandbox/grist/imports/import_csv.py

Co-authored-by: Alex Hall <alex.mojaki@gmail.com>
This commit is contained in:
Yohan Boniface 2022-09-20 17:34:41 +02:00 committed by GitHub
parent 57c8f9f4fe
commit ce31d1632d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@ def parse_file(file_path, parse_options=None):
# In addition, always prefer UTF8 over ASCII.
if encoding == 'ascii':
encoding = 'utf8'
log.info("Using encoding %s" % encoding)
log.info("Using encoding %s", encoding)
with codecs.open(file_path, mode="r", encoding=encoding) as f:
parsing_options, export_list = _parse_open_file(f, parse_options=parse_options)