datasette/datasette/utils
Konstantin Baikov 8e18c79431
Use context manager instead of plain open (#1211)
Context manager with open closes the files after usage.

When the object is already a pathlib.Path i used read_text
write_text functions

In some cases pathlib.Path.open were used in context manager,
it is basically the same as builtin open.

Thanks, Konstantin Baikov!
2021-03-11 08:15:49 -08:00
..
__init__.py Use context manager instead of plain open (#1211) 2021-03-11 08:15:49 -08:00
asgi.py Applied Black 2021-01-11 13:34:38 -08:00
internal_db.py Prettier CREATE TABLE SQL for _internal 2020-12-22 15:55:43 -08:00
shutil_backport.py Backport of Python 3.8 shutil.copytree, refs #744 (#769) 2020-05-27 11:17:43 -07:00
sqlite.py Show pysqlite3 version on /-/versions, if installed - #1125 2020-12-03 14:08:50 -08:00
testing.py Fix for OPTIONS request against /db, closes #1100 2020-12-02 16:49:55 -08:00