datasette/datasette
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
..
publish Use context manager instead of plain open (#1211) 2021-03-11 08:15:49 -08:00
static Resizable SQL editor using cm-resize, refs #1236 2021-02-19 15:47:52 -08:00
templates Resizable SQL editor using cm-resize, refs #1236 2021-02-19 15:47:52 -08:00
utils Use context manager instead of plain open (#1211) 2021-03-11 08:15:49 -08:00
views --crossdb option for joining across databases (#1232) 2021-02-18 14:09:12 -08:00
__init__.py Apply black to everything, enforce via unit tests (#449) 2019-05-03 22:15:14 -04:00
__main__.py Add support for running datasette as a module (#556) 2019-07-11 09:07:44 -07:00
actor_auth_cookie.py ds_author cookie can now expire, closes #829 2020-06-10 12:39:54 -07:00
app.py Use context manager instead of plain open (#1211) 2021-03-11 08:15:49 -08:00
blob_renderer.py Use f-strings in place of .format() 2020-11-15 15:24:22 -08:00
cli.py Use context manager instead of plain open (#1211) 2021-03-11 08:15:49 -08:00
database.py --crossdb option for joining across databases (#1232) 2021-02-18 14:09:12 -08:00
default_magic_parameters.py _header_x now defaults to empty string 2020-06-30 15:00:17 -07:00
default_menu_links.py Redirect /-/config to /-/settings, closes #1103 2020-11-24 12:19:14 -08:00
default_permissions.py Rename _schemas to _internal, closes #1156 2020-12-21 11:48:06 -08:00
facets.py JSON faceting now suggested even if column has blank strings, closes #1246 2021-02-28 19:44:04 -08:00
filters.py Fix for arraycontains bug, closes #1239 2021-02-22 16:22:47 -08:00
hookspecs.py Modernize code to Python 3.6+ (#1158) 2020-12-23 09:04:32 -08:00
inspect.py Modernize code to Python 3.6+ (#1158) 2020-12-23 09:04:32 -08:00
plugins.py Navigation menu plus menu_links() hook 2020-10-29 20:45:15 -07:00
renderer.py Modernize code to Python 3.6+ (#1158) 2020-12-23 09:04:32 -08:00
sql_functions.py _search= queries now correctly escaped, fixes #651 2019-12-29 18:48:30 +00:00
tracer.py Use time.perf_counter() instead of time.time(), closes #1157 2020-12-21 13:49:14 -08:00
url_builder.py Fixed bug loading database called 'test-database (1).sqlite' 2021-01-24 21:13:05 -08:00
version.py Release 0.55 2021-02-18 18:01:06 -08:00