Skip to content

Commit

Permalink
Fix SyntaxWarning from update message
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).
  • Loading branch information
living180 authored Sep 5, 2024
1 parent 633c5be commit ab13931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebook/notebookapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def __init__(self, jupyter_app, kernel_manager, contents_manager,
if settings['autoreload']:
log.info('Autoreload enabled: the webapp will restart when any Python src file changes.')

print("""
print(r"""
_ _ _ _
| | | |_ __ __| |__ _| |_ ___
| |_| | '_ \/ _` / _` | _/ -_)
Expand Down

0 comments on commit ab13931

Please sign in to comment.