mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Drop support for Python 3.7, refs #2097
This commit is contained in:
parent
45e6d370ce
commit
2fd871a906
8 changed files with 13 additions and 18 deletions
|
|
@ -1072,15 +1072,13 @@ class Datasette:
|
|||
{"name": t.name, "ident": t.ident, "daemon": t.daemon} for t in threads
|
||||
],
|
||||
}
|
||||
# Only available in Python 3.7+
|
||||
if hasattr(asyncio, "all_tasks"):
|
||||
tasks = asyncio.all_tasks()
|
||||
d.update(
|
||||
{
|
||||
"num_tasks": len(tasks),
|
||||
"tasks": [_cleaner_task_str(t) for t in tasks],
|
||||
}
|
||||
)
|
||||
tasks = asyncio.all_tasks()
|
||||
d.update(
|
||||
{
|
||||
"num_tasks": len(tasks),
|
||||
"tasks": [_cleaner_task_str(t) for t in tasks],
|
||||
}
|
||||
)
|
||||
return d
|
||||
|
||||
def _actor(self, request):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue