From 07f21e1c98ab0ae4b254b49febbfe5dfd7932822 2022-04-07 13:20:46 From: Matthias Bussonnier Date: 2022-04-07 13:20:46 Subject: [PATCH] and fix test on 3.10.4 --- 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):