1
0
Fork 0

Merging upstream version 3.0.27.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-09 18:34:28 +01:00
parent 479a0e81b5
commit 7807e8a7bd
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
25 changed files with 105 additions and 56 deletions

View file

@ -11,6 +11,7 @@ The ``patch_stdout`` option makes sure that when another coroutine is writing
to stdout, it won't break the input line, but instead writes nicely above the
prompt.
"""
import asyncio
from ptpython.repl import embed

View file

@ -5,6 +5,7 @@ This requires Python 3, asyncio and asyncssh.
Run this example and then SSH to localhost, port 8222.
"""
import asyncio
import logging

View file

@ -5,6 +5,7 @@ Copy this file to $XDG_CONFIG_HOME/ptpython/config.py
On Linux, this is: ~/.config/ptpython/config.py
On macOS, this is: ~/Library/Application Support/ptpython/config.py
"""
from prompt_toolkit.filters import ViInsertMode
from prompt_toolkit.key_binding.key_processor import KeyPress
from prompt_toolkit.keys import Keys

View file

@ -2,6 +2,7 @@
"""
Example of embedding a Python REPL, and setting a custom prompt.
"""
from prompt_toolkit.formatted_text import HTML, AnyFormattedText
from ptpython.prompt_style import PromptStyle

View file

@ -1,6 +1,6 @@
#!/usr/bin/env python
"""
"""
""" """
from ptpython.repl import embed

View file

@ -1,6 +1,6 @@
#!/usr/bin/env python
"""
"""
""" """
from ptpython.python_input import PythonInput

View file

@ -5,6 +5,7 @@ Example of running ptpython in another thread.
(For testing whether it's working fine if it's not embedded in the main
thread.)
"""
import threading
from ptpython.repl import embed