##// END OF EJS Templates
added filter warnings for older versions of python (<3.7)...
luciana -
Show More
@@ -803,8 +803,10 b' class InteractiveShell(SingletonConfigurable):'
803 This will allow deprecation warning of function used interactively to show
803 This will allow deprecation warning of function used interactively to show
804 warning to users, and still hide deprecation warning from libraries import.
804 warning to users, and still hide deprecation warning from libraries import.
805 """
805 """
806 if sys.version_info < (3,7):
806 warnings.filterwarnings("default", category=DeprecationWarning, module=self.user_ns.get("__name__"))
807 warnings.filterwarnings("default", category=DeprecationWarning, module=self.user_ns.get("__name__"))
807
808
809
808 def init_builtins(self):
810 def init_builtins(self):
809 # A single, static flag that we set to True. Its presence indicates
811 # A single, static flag that we set to True. Its presence indicates
810 # that an IPython shell has been created, and we make no attempts at
812 # that an IPython shell has been created, and we make no attempts at
General Comments 0
You need to be logged in to leave comments. Login now