From f5bbe779b784e83e9e8199d716f2cfc11e628f64 Mon Sep 17 00:00:00 2001 From: rydesun Date: Wed, 23 Apr 2025 07:33:54 +0800 Subject: [PATCH] Simplify python output --- .config/python/repl_startup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.config/python/repl_startup.py b/.config/python/repl_startup.py index 55f77a0..161b242 100644 --- a/.config/python/repl_startup.py +++ b/.config/python/repl_startup.py @@ -19,12 +19,11 @@ except FileNotFoundError: readline.set_history_length(1000000) atexit.register(readline.write_history_file, readline_history_file) -# 让输出的数据结构和Traceback带有语法高亮 +# 让输出的数据结构带有语法高亮 # 需要安装python-rich try: - from rich import inspect, pretty, traceback + from rich import inspect, pretty pretty.install() inspect_methods = partial(inspect, methods=True) - traceback.install() except Exception: pass