diff --git a/IPython/core/inputtransformer2.py b/IPython/core/inputtransformer2.py index 5b6f4a1..9839607 100644 --- a/IPython/core/inputtransformer2.py +++ b/IPython/core/inputtransformer2.py @@ -733,8 +733,10 @@ class MaybeAsyncCompile(Compile): super().__init__() self.flags |= extra_flags - def __call__(self, *args, **kwds): - return compile(*args, **kwds) + + if sys.version_info < (3,8): + def __call__(self, *args, **kwds): + return compile(*args, **kwds) class MaybeAsyncCommandCompiler(CommandCompiler): diff --git a/IPython/core/magic.py b/IPython/core/magic.py index 63b6bec..b41a651 100644 --- a/IPython/core/magic.py +++ b/IPython/core/magic.py @@ -319,7 +319,7 @@ class MagicsManager(Configurable): For example:: - c.MagicsManger.lazy_magics = { + c.MagicsManager.lazy_magics = { "my_magic": "slow.to.import", "my_other_magic": "also.slow", } diff --git a/IPython/core/tests/test_debugger.py b/IPython/core/tests/test_debugger.py index eb3b5f3..56c32f8 100644 --- a/IPython/core/tests/test_debugger.py +++ b/IPython/core/tests/test_debugger.py @@ -391,6 +391,7 @@ def _decorator_skip_setup(): child = pexpect.spawn( sys.executable, ["-m", "IPython", "--colors=nocolor"], env=env ) + child.str_last_chars = 1000 child.timeout = 5 * IPYTHON_TESTING_TIMEOUT_SCALE child.expect("IPython") diff --git a/docs/source/whatsnew/version7.rst b/docs/source/whatsnew/version7.rst index 4ea6c41..1bd58a8 100644 --- a/docs/source/whatsnew/version7.rst +++ b/docs/source/whatsnew/version7.rst @@ -24,7 +24,7 @@ The ability to configure magics to be lazily loaded has been added to IPython. See the ``ipython --help-all`` section on ``MagicsManager.lazy_magic``. One can now use:: - c.MagicsManger.lazy_magics = { + c.MagicsManager.lazy_magics = { "my_magic": "slow.to.import", "my_other_magic": "also.slow", }