From 1193160ed46bf0c9d103b2af1f1dca122517b157 2016-07-13 20:41:31 From: Thomas Kluyver Date: 2016-07-13 20:41:31 Subject: [PATCH] Fix keyword argument to warn() Closes gh-9755 --- diff --git a/IPython/core/interactiveshell.py b/IPython/core/interactiveshell.py index 1cb0bc3..5c30a20 100644 --- a/IPython/core/interactiveshell.py +++ b/IPython/core/interactiveshell.py @@ -2874,7 +2874,7 @@ class InteractiveShell(SingletonConfigurable): if result is not None: result.error_in_exec = e self.showtraceback(exception_only=True) - warn("To exit: use 'exit', 'quit', or Ctrl-D.", level=1) + warn("To exit: use 'exit', 'quit', or Ctrl-D.", stacklevel=1) except self.custom_exceptions: etype, value, tb = sys.exc_info() if result is not None: