From fc5375819a72e0781033d22e94d697f84f3f087e Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Thu, 4 Oct 2018 12:37:18 +0200 Subject: [PATCH] Rename load connectors function --- datasette_connectors/cli.py | 2 +- datasette_connectors/connectors.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() -- 2.39.5