aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/prompt-toolkit/py3/prompt_toolkit/application/current.py
diff options
context:
space:
mode:
authorrobot-contrib <robot-contrib@yandex-team.com>2023-12-11 10:59:41 +0300
committerrobot-contrib <robot-contrib@yandex-team.com>2023-12-11 11:40:57 +0300
commit708e84a1342eccd8b69c761dd2916e33503a883a (patch)
treeee90cd4ab26e843c00724b957ef247cc3d1b6f9f /contrib/python/prompt-toolkit/py3/prompt_toolkit/application/current.py
parent425d65a76c5bda62894f93d32f1f5e32f7439539 (diff)
downloadydb-708e84a1342eccd8b69c761dd2916e33503a883a.tar.gz
Update contrib/python/prompt-toolkit/py3 to 3.0.41
Diffstat (limited to 'contrib/python/prompt-toolkit/py3/prompt_toolkit/application/current.py')
-rw-r--r--contrib/python/prompt-toolkit/py3/prompt_toolkit/application/current.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/contrib/python/prompt-toolkit/py3/prompt_toolkit/application/current.py b/contrib/python/prompt-toolkit/py3/prompt_toolkit/application/current.py
index 33828024f4..908141a476 100644
--- a/contrib/python/prompt-toolkit/py3/prompt_toolkit/application/current.py
+++ b/contrib/python/prompt-toolkit/py3/prompt_toolkit/application/current.py
@@ -1,6 +1,5 @@
from __future__ import annotations
-import sys
from contextlib import contextmanager
from contextvars import ContextVar
from typing import TYPE_CHECKING, Any, Generator
@@ -145,12 +144,8 @@ def create_app_session(
Create a separate AppSession.
This is useful if there can be multiple individual `AppSession`s going on.
- Like in the case of an Telnet/SSH server. This functionality uses
- contextvars and requires at least Python 3.7.
+ Like in the case of an Telnet/SSH server.
"""
- if sys.version_info <= (3, 6):
- raise RuntimeError("Application sessions require Python 3.7.")
-
# If no input/output is specified, fall back to the current input/output,
# whatever that is.
if input is None: