Show More
@@ -665,16 +665,15 b' class InteractiveShell(SingletonConfigurable):' | |||||
665 | elif self.logstart: |
|
665 | elif self.logstart: | |
666 | self.magic('logstart') |
|
666 | self.magic('logstart') | |
667 |
|
667 | |||
668 | @staticmethod |
|
668 | def init_deprecation_warnings(self): | |
669 | def init_deprecation_warnings(): |
|
|||
670 | """ |
|
669 | """ | |
671 | register default filter for (pending) deprecation warning. |
|
670 | register default filter for (pending) deprecation warning. | |
672 |
|
671 | |||
673 | This will allow deprecation warning of function used interactively to show |
|
672 | This will allow deprecation warning of function used interactively to show | |
674 | warning to users, and still hide deprecation warning from libraries import. |
|
673 | warning to users, and still hide deprecation warning from libraries import. | |
675 | """ |
|
674 | """ | |
676 |
warnings.filterwarnings("default", category=DeprecationWarning, module="__ |
|
675 | warnings.filterwarnings("default", category=DeprecationWarning, module=self.user_ns.get("__name__")) | |
677 |
warnings.filterwarnings("default", category=PendingDeprecationWarning, module="__ |
|
676 | warnings.filterwarnings("default", category=PendingDeprecationWarning, module=self.user_ns.get("__name__")) | |
678 |
|
677 | |||
679 |
|
678 | |||
680 | def init_builtins(self): |
|
679 | def init_builtins(self): |
General Comments 0
You need to be logged in to leave comments.
Login now