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):