From d6558bbc5058c5b08847a3a57f51b1aff1a8f356 2016-07-19 13:22:49 From: Thomas Kluyver Date: 2016-07-19 13:22:49 Subject: [PATCH] Merge pull request #9760 from takluyver/i9755 Fix keyword argument to warn() --- diff --git a/IPython/core/interactiveshell.py b/IPython/core/interactiveshell.py index 80635cd..51ffb10 100644 --- a/IPython/core/interactiveshell.py +++ b/IPython/core/interactiveshell.py @@ -2878,7 +2878,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: