Skip to content

Commit 566860b

Browse files
authored
fix traitlets warning->error on 6.5.x (#7051)
* typo in default contents manager class it's jupyter_server.services.contents, not jupyter_server.contents.services * fix import of warnings.warn never part of the traitlets API
1 parent 3797497 commit 566860b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

notebook/notebookapp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1408,7 +1408,7 @@ def _update_mathjax_config(self, change):
14081408
# and allow jupyter_server contents managers to pass
14091409
# through. If jupyter_server is not installed, this class
14101410
# will be ignored.
1411-
'jupyter_server.contents.services.managers.ContentsManager'
1411+
"jupyter_server.services.contents.managers.ContentsManager",
14121412
],
14131413
config=True,
14141414
help=_('The notebook manager class to use.')

notebook/traittypes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import inspect
2-
from traitlets import ClassBasedTraitType, Undefined, warn
2+
from warnings import warn
3+
from traitlets import ClassBasedTraitType, Undefined
34

45
# Traitlet's 5.x includes a set of utilities for building
56
# description strings for objects. Traitlets 5.x does not

0 commit comments

Comments
 (0)