]> git.jsancho.org Git - datasette-connectors.git/commitdiff
Rename load connectors function
authorJavier Sancho <jsf@jsancho.org>
Thu, 4 Oct 2018 10:37:18 +0000 (12:37 +0200)
committerJavier Sancho <jsf@jsancho.org>
Thu, 4 Oct 2018 10:37:18 +0000 (12:37 +0200)
datasette_connectors/cli.py
datasette_connectors/connectors.py

index 2e8d2f5aad963445b6323c1c8edfe0105d1ee6b5..74375e017bc7cd65acea23d5ae826cdcc8ab6087 100644 (file)
@@ -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
index 6b09abb956b422d65a2385d7b59294403a2d1ac2..e3d10ba4dacd0fd5da758558377a38c6b9924c13 100644 (file)
@@ -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()