From f3b9d0fd8f09ebe1a13c882b9029fa9b362a0c76 2015-04-03 01:34:38 From: Min RK Date: 2015-04-03 01:34:38 Subject: [PATCH] Backport PR #8237: Don't write notebooks to disk when signing them Since the signature isn't stored in the notebook anymore, there's nothing to write. --- diff --git a/IPython/nbformat/sign.py b/IPython/nbformat/sign.py index 3280262..8bf9569 100644 --- a/IPython/nbformat/sign.py +++ b/IPython/nbformat/sign.py @@ -19,7 +19,6 @@ except ImportError: except ImportError: sqlite3 = None -from IPython.utils.io import atomic_writing from IPython.utils.py3compat import unicode_type, cast_bytes from IPython.utils.traitlets import Instance, Bytes, Enum, Any, Unicode, Bool, Integer from IPython.config import LoggingConfigurable, MultipleInstanceError @@ -403,8 +402,6 @@ class TrustNotebookApp(BaseIPythonApplication): else: print("Signing notebook: %s" % notebook_path) self.notary.sign(nb) - with atomic_writing(notebook_path) as f: - write(nb, f, NO_CONVERT) def generate_new_key(self): """Generate a new notebook signature key"""