From 4b3870ed0de13dc23b985d2db0bb2a121f12b46f 2016-10-23 08:50:27 From: Srinivas Reddy Thatiparthy Date: 2016-10-23 08:50:27 Subject: [PATCH] correct the argument to warn function --- diff --git a/IPython/core/displayhook.py b/IPython/core/displayhook.py index 9ad545a..9258c61 100644 --- a/IPython/core/displayhook.py +++ b/IPython/core/displayhook.py @@ -45,7 +45,7 @@ class DisplayHook(Configurable): self.do_full_cache = 0 cache_size = 0 warn('caching was disabled (min value for cache size is %s).' % - cache_size_min,level=3) + cache_size_min,stacklevel=3) else: self.do_full_cache = 1