Commit 7c0f1f1
authored
from types import coroutine
`coroutine` is no longer available via the `asyncio` module as of Python 3.11.
```python-traceback
$ venv311/bin/python -c 'import memory_profiler'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/altendky//venv311/lib/python3.11/site-packages/memory_profiler.py", line 10, in <module>
from asyncio import coroutine, iscoroutinefunction
ImportError: cannot import name 'coroutine' from 'asyncio' (/home/altendky/.pyenv/versions/3.11.0rc2/lib/python3.11/asyncio/__init__.py)
```1 parent eed3447 commit 7c0f1f1
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
0 commit comments