##// END OF EJS Templates
Don't write notebooks to disk when signing them...
Min RK -
Show More
@@ -19,7 +19,6 b' except ImportError:'
19 except ImportError:
19 except ImportError:
20 sqlite3 = None
20 sqlite3 = None
21
21
22 from IPython.utils.io import atomic_writing
23 from IPython.utils.py3compat import unicode_type, cast_bytes
22 from IPython.utils.py3compat import unicode_type, cast_bytes
24 from IPython.utils.traitlets import Instance, Bytes, Enum, Any, Unicode, Bool, Integer
23 from IPython.utils.traitlets import Instance, Bytes, Enum, Any, Unicode, Bool, Integer
25 from IPython.config import LoggingConfigurable, MultipleInstanceError
24 from IPython.config import LoggingConfigurable, MultipleInstanceError
@@ -403,8 +402,6 b' class TrustNotebookApp(BaseIPythonApplication):'
403 else:
402 else:
404 print("Signing notebook: %s" % notebook_path)
403 print("Signing notebook: %s" % notebook_path)
405 self.notary.sign(nb)
404 self.notary.sign(nb)
406 with atomic_writing(notebook_path) as f:
407 write(nb, f, NO_CONVERT)
408
405
409 def generate_new_key(self):
406 def generate_new_key(self):
410 """Generate a new notebook signature key"""
407 """Generate a new notebook signature key"""
General Comments 0
You need to be logged in to leave comments. Login now