1
0

python 3.10: fix some deprecation warnings and compat with 3.10

This commit is contained in:
SomberNight
2021-11-09 01:02:57 +01:00
parent ed0dd6eb22
commit 88a1c1a618
9 changed files with 18 additions and 18 deletions

View File

@@ -14,7 +14,7 @@ def sql(func):
returns an awaitable asyncio.Future
"""
def wrapper(self: 'SqlDB', *args, **kwargs):
assert threading.currentThread() != self.sql_thread
assert threading.current_thread() != self.sql_thread
f = self.asyncio_loop.create_future()
self.db_requests.put((f, func, args, kwargs))
return f