Show More
@@ -26,7 +26,7 b' from tornado import web' | |||||
26 |
|
26 | |||
27 | from .nbmanager import NotebookManager |
|
27 | from .nbmanager import NotebookManager | |
28 | from IPython.nbformat import current |
|
28 | from IPython.nbformat import current | |
29 |
from IPython.utils.traitlets import Unicode, |
|
29 | from IPython.utils.traitlets import Unicode, Bool, TraitError | |
30 | from IPython.utils.py3compat import getcwd |
|
30 | from IPython.utils.py3compat import getcwd | |
31 | from IPython.utils import tz |
|
31 | from IPython.utils import tz | |
32 | from IPython.html.utils import is_hidden, to_os_path |
|
32 | from IPython.html.utils import is_hidden, to_os_path | |
@@ -461,7 +461,7 b' class FileNotebookManager(NotebookManager):' | |||||
461 | ) |
|
461 | ) | |
462 | # ensure notebook is readable (never restore from an unreadable notebook) |
|
462 | # ensure notebook is readable (never restore from an unreadable notebook) | |
463 | with io.open(cp_path, 'r', encoding='utf-8') as f: |
|
463 | with io.open(cp_path, 'r', encoding='utf-8') as f: | |
464 |
|
|
464 | current.read(f, u'json') | |
465 | shutil.copy2(cp_path, nb_path) |
|
465 | shutil.copy2(cp_path, nb_path) | |
466 | self.log.debug("copying %s -> %s", cp_path, nb_path) |
|
466 | self.log.debug("copying %s -> %s", cp_path, nb_path) | |
467 |
|
467 |
General Comments 0
You need to be logged in to leave comments.
Login now