From 5c8096f7146dc3125ed3da7e068f29667ea31c17 2014-10-11 09:13:12 From: Matthias Bussonnier Date: 2014-10-11 09:13:12 Subject: [PATCH] Merge pull request #6676 from minrk/trust-save strip cell.trusted as a transient value --- diff --git a/IPython/nbformat/v3/rwbase.py b/IPython/nbformat/v3/rwbase.py index 6d4274d..8b0635b 100644 --- a/IPython/nbformat/v3/rwbase.py +++ b/IPython/nbformat/v3/rwbase.py @@ -150,6 +150,9 @@ def strip_transient(nb): for ws in nb['worksheets']: for cell in ws['cells']: cell.get('metadata', {}).pop('trusted', None) + # strip cell.trusted even though it shouldn't be used, + # since it's where the transient value used to be stored. + cell.pop('trusted', None) return nb