mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-15 14:38:47 -05:00
Fix unicode support
This commit is contained in:
parent
e24c32e6f3
commit
779f7b0f44
22 changed files with 193 additions and 168 deletions
|
|
@ -16,6 +16,8 @@
|
|||
from .maria import MariaEngine
|
||||
from .sqlite3 import Sqlite3Engine
|
||||
|
||||
import importlib
|
||||
|
||||
|
||||
SUPPORTED_MODULE = {
|
||||
"sqlite3": Sqlite3Engine,
|
||||
|
|
@ -27,7 +29,7 @@ def create_engine(name):
|
|||
engine_class = SUPPORTED_MODULE.get(name, None)
|
||||
|
||||
if engine_class:
|
||||
module = __import__(name)
|
||||
module = importlib.import_module(name)
|
||||
return engine_class(module)
|
||||
|
||||
raise RuntimeError(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue