From 4932a7e2d960be175c98b3766c14d52a0f2a7f3f Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Wed, 29 Apr 2015 11:56:38 +0100 Subject: Use __all__ instead of assert to stop pyflakes from warning about unused import in __init__ --- synapse/storage/engines/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/synapse/storage/engines/__init__.py b/synapse/storage/engines/__init__.py index f661e4803c..bd3c8f9452 100644 --- a/synapse/storage/engines/__init__.py +++ b/synapse/storage/engines/__init__.py @@ -14,8 +14,6 @@ # limitations under the License. from ._base import IncorrectDatabaseSetup -assert IncorrectDatabaseSetup # Appease PEP8 - from .postgres import PostgresEngine from .sqlite3 import Sqlite3Engine @@ -38,3 +36,6 @@ def create_engine(name): raise RuntimeError( "Unsupported database engine '%s'" % (name,) ) + + +__all__ = ["create_engine", "IncorrectDatabaseSetup"] -- cgit 1.4.1