Skip to content

Commit

Permalink
Fix SyntaxWarning from update message (#297)
Browse files Browse the repository at this point in the history
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).

Co-authored-by: Rosio <[email protected]>
  • Loading branch information
living180 and RRosio authored Sep 18, 2024
1 parent bebcb88 commit b803e5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nbclassic/notebookapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
_ _ _ _
| | | |_ __ __| |__ _| |_ ___
| |_| | '_ \/ _` / _` | _/ -_)
Expand Down

0 comments on commit b803e5f

Please sign in to comment.