Skip to content

Commit

Permalink
Remove redundant code for Python <= 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Nov 3, 2023
1 parent febdb63 commit 99b5ccb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/prompt_toolkit/application/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ def _enable_breakpointhook(self) -> Generator[None, None, None]:
manager. (We will only install the hook if no other custom hook was
set.)
"""
if sys.version_info >= (3, 7) and sys.breakpointhook == sys.__breakpointhook__:
if sys.breakpointhook == sys.__breakpointhook__:
sys.breakpointhook = self._breakpointhook

try:
Expand Down
4 changes: 1 addition & 3 deletions src/prompt_toolkit/application/current.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +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 no input/output is specified, fall back to the current input/output,
# whatever that is.
if input is None:
Expand Down

0 comments on commit 99b5ccb

Please sign in to comment.