##// END OF EJS Templates
do not show pending deprecation warnign
Matthias Bussonnier -
Show More
@@ -667,14 +667,12 b' class InteractiveShell(SingletonConfigurable):'
667
667
668 def init_deprecation_warnings(self):
668 def init_deprecation_warnings(self):
669 """
669 """
670 register default filter for (pending) deprecation warning.
670 register default filter for deprecation warning.
671
671
672 This will allow deprecation warning of function used interactively to show
672 This will allow deprecation warning of function used interactively to show
673 warning to users, and still hide deprecation warning from libraries import.
673 warning to users, and still hide deprecation warning from libraries import.
674 """
674 """
675 warnings.filterwarnings("default", category=DeprecationWarning, module=self.user_ns.get("__name__"))
675 warnings.filterwarnings("default", category=DeprecationWarning, module=self.user_ns.get("__name__"))
676 warnings.filterwarnings("default", category=PendingDeprecationWarning, module=self.user_ns.get("__name__"))
677
678
676
679 def init_builtins(self):
677 def init_builtins(self):
680 # A single, static flag that we set to True. Its presence indicates
678 # A single, static flag that we set to True. Its presence indicates
@@ -1,4 +1,4 b''
1 Code raising ``DeprecationWarning`` or ``PendingDeprecationWarning`` that are
1 Code raising ``DeprecationWarning``
2 entered by the user in an interactive session will now display the warning by
2 entered by the user in an interactive session will now display the warning by
3 default. See :ghpull:`8480` an :ghissue:`8478`.
3 default. See :ghpull:`8480` an :ghissue:`8478`.
4
4
General Comments 0
You need to be logged in to leave comments. Login now