From 1e336ef9d1acaa8cb4bec407b7ac5dbf749ada5c Mon Sep 17 00:00:00 2001 From: Andrew Grigorev Date: Thu, 27 Apr 2023 14:34:32 +0300 Subject: [PATCH] Revert to original pre-2018 banner format --- flask_shell_ipython.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/flask_shell_ipython.py b/flask_shell_ipython.py index efaffdb..73ef639 100644 --- a/flask_shell_ipython.py +++ b/flask_shell_ipython.py @@ -28,8 +28,7 @@ def shell(ipython_args): config.TerminalInteractiveShell.banner1 = f"""Python {sys.version} on {sys.platform} IPython: {IPython.__version__} -App: {app.import_name} -Debug: {app.debug} +App: {app.import_name}{' [debug]' if app.debug else ''} Instance: {app.instance_path} """