Current Path: > > opt > alt > python313 > lib64 > > > python3.13 > _pyrepl
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
__init__.py | File | 925 bytes | June 23 2025 14:28:16. | |
__main__.py | File | 422 bytes | June 23 2025 14:28:17. | |
_minimal_curses.py | File | 1844 bytes | June 23 2025 14:28:17. | |
_threading_handler.py | File | 2170 bytes | June 23 2025 14:28:17. | |
base_eventqueue.py | File | 3837 bytes | June 23 2025 14:28:16. | |
commands.py | File | 12190 bytes | June 23 2025 14:28:16. | |
completing_reader.py | File | 10050 bytes | June 23 2025 14:28:16. | |
console.py | File | 6866 bytes | June 23 2025 14:28:16. | |
curses.py | File | 1241 bytes | June 23 2025 14:28:17. | |
fancy_termios.py | File | 2161 bytes | June 23 2025 14:28:16. | |
historical_reader.py | File | 13240 bytes | June 23 2025 14:28:16. | |
input.py | File | 3779 bytes | June 23 2025 14:28:16. | |
keymap.py | File | 6460 bytes | June 23 2025 14:28:17. | |
main.py | File | 1938 bytes | June 23 2025 14:28:16. | |
mypy.ini | File | 870 bytes | June 11 2025 15:36:57. | |
pager.py | File | 5815 bytes | June 23 2025 14:28:17. | |
reader.py | File | 27712 bytes | June 23 2025 14:28:17. | |
readline.py | File | 20219 bytes | June 23 2025 14:28:16. | |
simple_interact.py | File | 5768 bytes | June 23 2025 14:28:16. | |
trace.py | File | 433 bytes | June 23 2025 14:28:16. | |
types.py | File | 354 bytes | June 23 2025 14:28:16. | |
unix_console.py | File | 25637 bytes | June 23 2025 14:28:17. | |
unix_eventqueue.py | File | 2524 bytes | June 23 2025 14:28:17. | |
utils.py | File | 2232 bytes | June 23 2025 14:28:17. | |
windows_console.py | File | 21620 bytes | June 23 2025 14:28:16. | |
windows_eventqueue.py | File | 991 bytes | June 23 2025 14:28:16. |
import errno import os import sys CAN_USE_PYREPL: bool FAIL_REASON: str try: if sys.platform == "win32" and sys.getwindowsversion().build < 10586: raise RuntimeError("Windows 10 TH2 or later required") if not os.isatty(sys.stdin.fileno()): raise OSError(errno.ENOTTY, "tty required", "stdin") from .simple_interact import check if err := check(): raise RuntimeError(err) except Exception as e: CAN_USE_PYREPL = False FAIL_REASON = f"warning: can't use pyrepl: {e}" else: CAN_USE_PYREPL = True FAIL_REASON = "" def interactive_console(mainmodule=None, quiet=False, pythonstartup=False): if not CAN_USE_PYREPL: if not os.getenv('PYTHON_BASIC_REPL') and FAIL_REASON: from .trace import trace trace(FAIL_REASON) print(FAIL_REASON, file=sys.stderr) return sys._baserepl() if mainmodule: namespace = mainmodule.__dict__ else: import __main__ namespace = __main__.__dict__ namespace.pop("__pyrepl_interactive_console", None) # sys._baserepl() above does this internally, we do it here startup_path = os.getenv("PYTHONSTARTUP") if pythonstartup and startup_path: sys.audit("cpython.run_startup", startup_path) import tokenize with tokenize.open(startup_path) as f: startup_code = compile(f.read(), startup_path, "exec") exec(startup_code, namespace) # set sys.{ps1,ps2} just before invoking the interactive interpreter. This # mimics what CPython does in pythonrun.c if not hasattr(sys, "ps1"): sys.ps1 = ">>> " if not hasattr(sys, "ps2"): sys.ps2 = "... " from .console import InteractiveColoredConsole from .simple_interact import run_multiline_interactive_console console = InteractiveColoredConsole(namespace, filename="<stdin>") run_multiline_interactive_console(console)
SILENT KILLER Tool