From: Javier Sancho Date: Thu, 4 Oct 2018 10:37:18 +0000 (+0200) Subject: Rename load connectors function X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=fc5375819a72e0781033d22e94d697f84f3f087e;p=datasette-connectors.git Rename load connectors function --- diff --git a/datasette_connectors/cli.py b/datasette_connectors/cli.py index 2e8d2f5..74375e0 100644 --- a/datasette_connectors/cli.py +++ b/datasette_connectors/cli.py @@ -1,3 +1,3 @@ from .monkey import patch_datasette; patch_datasette() -from .connectors import load_connectors; load_connectors() +from .connectors import load; load() from datasette.cli import cli diff --git a/datasette_connectors/connectors.py b/datasette_connectors/connectors.py index 6b09abb..e3d10ba 100644 --- a/datasette_connectors/connectors.py +++ b/datasette_connectors/connectors.py @@ -2,7 +2,7 @@ import pkg_resources db_connectors = {} -def load_connectors(): +def load(): for entry_point in pkg_resources.iter_entry_points('datasette.connectors'): db_connectors[entry_point.name] = entry_point.load()