From 03703a25c02aebce1bc425ff1953bd02cf4a0e85 Mon Sep 17 00:00:00 2001 From: Daniel Harding Date: Thu, 12 Sep 2024 14:51:51 +0300 Subject: [PATCH] Fix SyntaxWarning from update message The use of backslashes in the ASCII-art "Update" banner results in an "invalid escape sequence" SyntaxWarning under Python 3.12. Fix by changing the banner string to a raw string (which ignores backslashes). --- nbclassic/notebookapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nbclassic/notebookapp.py b/nbclassic/notebookapp.py index e80130b70..73a4a80c6 100644 --- a/nbclassic/notebookapp.py +++ b/nbclassic/notebookapp.py @@ -325,7 +325,7 @@ def initialize_handlers(self): router.add_rules(core_rules) router.add_rules(static_handlers) router.add_rules(final_rules) - print(""" + print(r""" _ _ _ _ | | | |_ __ __| |__ _| |_ ___ | |_| | '_ \/ _` / _` | _/ -_)