Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f03fa54

Browse files
authored
Merge pull request #10023 from srinivasreddy/sprint_friendly
correct the argument to warn function
2 parents 6b34d35 + 4b3870e commit f03fa54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

IPython/core/displayhook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(self, shell=None, cache_size=1000, **kwargs):
4545
self.do_full_cache = 0
4646
cache_size = 0
4747
warn('caching was disabled (min value for cache size is %s).' %
48-
cache_size_min,level=3)
48+
cache_size_min,stacklevel=3)
4949
else:
5050
self.do_full_cache = 1
5151

0 commit comments

Comments
 (0)