Show More
@@ -513,7 +513,7 b' class CodeMagics(Magics):' | |||||
513 | self.shell.hooks.editor(filename) |
|
513 | self.shell.hooks.editor(filename) | |
514 |
|
514 | |||
515 | # and make a new macro object, to replace the old one |
|
515 | # and make a new macro object, to replace the old one | |
516 |
with open( |
|
516 | with Path(filename).open() as mfile: | |
517 | mvalue = mfile.read() |
|
517 | mvalue = mfile.read() | |
518 | self.shell.user_ns[mname] = Macro(mvalue) |
|
518 | self.shell.user_ns[mname] = Macro(mvalue) | |
519 |
|
519 |
General Comments 0
You need to be logged in to leave comments.
Login now