projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ubuntu 22.04 and Python 3.10 preparation
[osm/N2VC.git]
/
n2vc
/
loggable.py
diff --git
a/n2vc/loggable.py
b/n2vc/loggable.py
index
cbaa116
..
d129b4b
100644
(file)
--- a/
n2vc/loggable.py
+++ b/
n2vc/loggable.py
@@
-131,7
+131,7
@@
class Loggable:
coroutine_id = ""
if include_coroutine:
try:
coroutine_id = ""
if include_coroutine:
try:
- if asyncio.
Task.
current_task() is not None:
+ if asyncio.current_task() is not None:
def print_cor_name(c):
import inspect
def print_cor_name(c):
import inspect
@@
-143,7
+143,7
@@
class Loggable:
except Exception:
pass
except Exception:
pass
- coro = asyncio.
Task.
current_task()._coro
+ coro = asyncio.current_task()._coro
coroutine_id = "coro-{} {}()".format(
hex(id(coro))[2:], print_cor_name(coro)
)
coroutine_id = "coro-{} {}()".format(
hex(id(coro))[2:], print_cor_name(coro)
)