summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-04-29 11:56:38 +0100
committerErik Johnston <erik@matrix.org>2015-04-29 12:12:25 +0100
commit4932a7e2d960be175c98b3766c14d52a0f2a7f3f (patch)
tree7b36cebdef415e04792963e0d07c3f4f6b83c12c /synapse
parentMerge branch 'develop' into erikj/postgres_charset_check (diff)
downloadsynapse-4932a7e2d960be175c98b3766c14d52a0f2a7f3f.tar.xz
Use __all__ instead of assert to stop pyflakes from warning about unused import in __init__
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/engines/__init__.py5
1 files 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"]