diff options
author | Erik Johnston <erik@matrix.org> | 2015-04-29 11:56:38 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-04-29 12:12:25 +0100 |
commit | 4932a7e2d960be175c98b3766c14d52a0f2a7f3f (patch) | |
tree | 7b36cebdef415e04792963e0d07c3f4f6b83c12c /synapse/storage | |
parent | Merge branch 'develop' into erikj/postgres_charset_check (diff) | |
download | synapse-4932a7e2d960be175c98b3766c14d52a0f2a7f3f.tar.xz |
Use __all__ instead of assert to stop pyflakes from warning about unused import in __init__
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/engines/__init__.py | 5 |
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"] |