mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-22 19:44:06 +00:00
Use __all__ instead of assert to stop pyflakes from warning about unused import in __init__
This commit is contained in:
1 parent
9894da6a29
commit
4932a7e2d9
1 file changed
+3
-2
@@ -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"]
|
||||
Reference in new issue
Block a user