Skip to content
Snippets Groups Projects
Commit 4932a7e2 authored by Erik Johnston's avatar Erik Johnston
Browse files

Use __all__ instead of assert to stop pyflakes from warning about unused import in __init__

parent 9894da6a
No related branches found
No related tags found
No related merge requests found
...@@ -14,8 +14,6 @@ ...@@ -14,8 +14,6 @@
# limitations under the License. # limitations under the License.
from ._base import IncorrectDatabaseSetup from ._base import IncorrectDatabaseSetup
assert IncorrectDatabaseSetup # Appease PEP8
from .postgres import PostgresEngine from .postgres import PostgresEngine
from .sqlite3 import Sqlite3Engine from .sqlite3 import Sqlite3Engine
...@@ -38,3 +36,6 @@ def create_engine(name): ...@@ -38,3 +36,6 @@ def create_engine(name):
raise RuntimeError( raise RuntimeError(
"Unsupported database engine '%s'" % (name,) "Unsupported database engine '%s'" % (name,)
) )
__all__ = ["create_engine", "IncorrectDatabaseSetup"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment