mirror of https://github.com/jumpserver/jumpserver
perf: remove pymysql
parent
3fade107d5
commit
17d96669fe
|
@ -1,16 +1,8 @@
|
||||||
import os
|
import os
|
||||||
import platform
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from redis.sentinel import SentinelManagedSSLConnection
|
|
||||||
|
|
||||||
if platform.system() == 'Darwin' and platform.machine() == 'arm64':
|
|
||||||
import pymysql
|
|
||||||
|
|
||||||
# pymysql.version_info = (1, 4, 2, "final", 0)
|
|
||||||
pymysql.install_as_MySQLdb()
|
|
||||||
|
|
||||||
from django.urls import reverse_lazy
|
from django.urls import reverse_lazy
|
||||||
|
from redis.sentinel import SentinelManagedSSLConnection
|
||||||
|
|
||||||
from .. import const
|
from .. import const
|
||||||
from ..const import CONFIG
|
from ..const import CONFIG
|
||||||
|
|
Loading…
Reference in New Issue