From 8970389fbc7a64279ffb9b62fcb0ad176f4084f0 2017-01-24 19:31:21 From: Matthias Bussonnier Date: 2017-01-24 19:31:21 Subject: [PATCH] Correctly deprecate limit_to_all --- diff --git a/IPython/core/completer.py b/IPython/core/completer.py index 1275aff..81298e1 100644 --- a/IPython/core/completer.py +++ b/IPython/core/completer.py @@ -540,6 +540,13 @@ class IPCompleter(Completer): """, ).tag(config=True) + @observe('limit_to__all__') + def _limit_to_all_changed(self, change): + warnings.warn('`IPython.core.IPCompleter.limit_to__all__` configuration ' + 'value has been deprecated since IPython 5.0, will be made to have ' + 'no effects and then removed in future version of IPython.', + UserWarning) + def __init__(self, shell=None, namespace=None, global_namespace=None, use_readline=False, config=None, **kwargs): """IPCompleter() -> completer