diff --git a/IPython/core/inputsplitter.py b/IPython/core/inputsplitter.py index af70fcf..337b27d 100644 --- a/IPython/core/inputsplitter.py +++ b/IPython/core/inputsplitter.py @@ -499,6 +499,11 @@ class InputSplitter(object): self._indent_spaces_cache = (self.source, n) return n + # Backwards compatibility. I think all code that used .indent_spaces was + # inside IPython, but we can leave this here until IPython 7 in case any + # other modules are using it. -TK, November 2017 + indent_spaces = property(get_indent_spaces) + def _store(self, lines, buffer=None, store='source'): """Store one or more lines of input.