Skip to content

Commit

Permalink
src/sage/repl/ipython_extension.py: Make import from sage.misc.edit_m…
Browse files Browse the repository at this point in the history
…odule lazy
  • Loading branch information
Matthias Koeppe committed May 5, 2022
1 parent 89d7b08 commit 5a13e76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sage/repl/ipython_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,7 @@ def __init__(self, shell=None):
self.auto_magics = SageMagics(shell)
self.shell.register_magics(self.auto_magics)

import sage.misc.edit_module as edit_module
self.shell.set_hook('editor', edit_module.edit_devel)
self.shell.set_hook('editor', LazyImport("sage.misc.edit_module", "edit_devel"))

self.init_inspector()
self.init_line_transforms()
Expand Down

0 comments on commit 5a13e76

Please sign in to comment.