Merging upstream version 3.0.27.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
479a0e81b5
commit
7807e8a7bd
25 changed files with 105 additions and 56 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python
|
||||
"""
|
||||
"""
|
||||
""" """
|
||||
|
||||
from ptpython.repl import embed
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python
|
||||
"""
|
||||
"""
|
||||
""" """
|
||||
|
||||
from ptpython.python_input import PythonInput
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue