Closed simonw closed 1 year ago
The documentation here does at least say the following: https://sqlite-utils.datasette.io/en/3.30/python-api.html#reading-rows-from-a-file
- fp (BinaryIO) -- a file-like object containing binary data
Hey, isn't this essentially the same issue as #448 ?
Hey, isn't this essentially the same issue as #448 ?
Yes it is, good catch!
I got this error:
From this code:
The error went away when I changed it to
type=click.File("rb")
.This should either be called out in the documentation or
rows_from_file()
should be fixed to handle text-mode files in addition to binary files.