Show More
@@ -667,14 +667,12 b' class InteractiveShell(SingletonConfigurable):' | |||
|
667 | 667 | |
|
668 | 668 | def init_deprecation_warnings(self): |
|
669 | 669 | """ |
|
670 |
register default filter for |
|
|
670 | register default filter for deprecation warning. | |
|
671 | 671 | |
|
672 | 672 | This will allow deprecation warning of function used interactively to show |
|
673 | 673 | warning to users, and still hide deprecation warning from libraries import. |
|
674 | 674 | """ |
|
675 | 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 | 677 | def init_builtins(self): |
|
680 | 678 | # A single, static flag that we set to True. Its presence indicates |
General Comments 0
You need to be logged in to leave comments.
Login now