Skip to content

Commit 4c9cb8e

Browse files
committed
Update
1 parent 33f9eca commit 4c9cb8e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dj_db_conn_pool/backends/jdbc/oceanbase/mysql/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ class DatabaseWrapper(JDBCOceanBaseDatabaseWrapperMixin, base.DatabaseWrapper):
99
class SQLAlchemyDialect(MySQLDialect):
1010
def do_ping(self, dbapi_connection):
1111
try:
12-
return super(MySQLDialect, self).do_ping(dbapi_connection)
12+
return super().do_ping(dbapi_connection)
1313
except jpype.dbapi2.DatabaseError:
1414
return False

dj_db_conn_pool/backends/jdbc/oceanbase/oracle/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class DatabaseWrapper(JDBCOceanBaseDatabaseWrapperMixin, base.DatabaseWrapper):
99
class SQLAlchemyDialect(OracleDialect):
1010
def do_ping(self, dbapi_connection):
1111
try:
12-
return super(OracleDialect, self).do_ping(dbapi_connection)
12+
return super().do_ping(dbapi_connection)
1313
except jpype.dbapi2.DatabaseError:
1414
return False
1515

dj_db_conn_pool/backends/jdbc/oracle/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class DatabaseWrapper(JDBCDatabaseWrapperMixin, base.DatabaseWrapper):
2323
class SQLAlchemyDialect(OracleDialect):
2424
def do_ping(self, dbapi_connection):
2525
try:
26-
return super(OracleDialect, self).do_ping(dbapi_connection)
26+
return super().do_ping(dbapi_connection)
2727
except jpype.dbapi2.DatabaseError:
2828
return False
2929

0 commit comments

Comments
 (0)