Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions IPython/core/interactiveshell.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,7 @@ def removed_co_newlocals(function:types.FunctionType) -> types.FunctionType:
# we still need to run things using the asyncio eventloop, but there is no
# async integration
from .async_helpers import (_asyncio_runner, _asyncify, _pseudo_sync_runner)
if sys.version_info > (3, 5):
from .async_helpers import _curio_runner, _trio_runner, _should_be_async
else :
_curio_runner = _trio_runner = None

def _should_be_async(cell:str)->bool:
return False
from .async_helpers import _curio_runner, _trio_runner, _should_be_async


def _ast_asyncify(cell:str, wrapper_name:str) -> ast.Module:
Expand Down Expand Up @@ -2245,8 +2239,7 @@ def init_magics(self):
m.NamespaceMagics, m.OSMagics, m.PackagingMagics,
m.PylabMagics, m.ScriptMagics,
)
if sys.version_info >(3,5):
self.register_magics(m.AsyncMagics)
self.register_magics(m.AsyncMagics)

# Register Magic Aliases
mman = self.magics_manager
Expand Down
Loading