##// END OF EJS Templates
added filter warnings for older versions of python (<3.7)...
luciana -
Show More
@@ -803,7 +803,9 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 warnings.filterwarnings("default", category=DeprecationWarning, module=self.user_ns.get("__name__"))
806 if sys.version_info < (3,7):
807 warnings.filterwarnings("default", category=DeprecationWarning, module=self.user_ns.get("__name__"))
808
807
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
General Comments 0
You need to be logged in to leave comments. Login now