From f03fa54464ae646037629f23c34b5327fc20ae03 2016-10-23 09:18:42 From: Thomas Kluyver Date: 2016-10-23 09:18:42 Subject: [PATCH] Merge pull request #10023 from srinivasreddy/sprint_friendly 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