Skip to content

Commit 99b5ccb

Browse files
committed
Remove redundant code for Python <= 3.6
1 parent febdb63 commit 99b5ccb

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/prompt_toolkit/application/application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ def _enable_breakpointhook(self) -> Generator[None, None, None]:
10051005
manager. (We will only install the hook if no other custom hook was
10061006
set.)
10071007
"""
1008-
if sys.version_info >= (3, 7) and sys.breakpointhook == sys.__breakpointhook__:
1008+
if sys.breakpointhook == sys.__breakpointhook__:
10091009
sys.breakpointhook = self._breakpointhook
10101010

10111011
try:

src/prompt_toolkit/application/current.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,8 @@ def create_app_session(
144144
Create a separate AppSession.
145145
146146
This is useful if there can be multiple individual `AppSession`s going on.
147-
Like in the case of an Telnet/SSH server. This functionality uses
148-
contextvars and requires at least Python 3.7.
147+
Like in the case of an Telnet/SSH server.
149148
"""
150-
151149
# If no input/output is specified, fall back to the current input/output,
152150
# whatever that is.
153151
if input is None:

0 commit comments

Comments
 (0)