Skip to content

Commit 6d45469

Browse files
Fix for Python 3.6
Take asynccontextmanager from `prompt_toolkit.eventloop.async_context_manager`.
1 parent 1ff6551 commit 6d45469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/prompt_toolkit/eventloop/async_generator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""
22
Implementation for async generators.
33
"""
4-
from contextlib import asynccontextmanager
54
from queue import Empty, Full, Queue
65
from threading import Event
76
from typing import (
@@ -14,6 +13,7 @@
1413
Union,
1514
)
1615

16+
from .async_context_manager import asynccontextmanager
1717
from .utils import get_event_loop, run_in_executor_with_context
1818

1919
__all__ = [

0 commit comments

Comments
 (0)