Skip to content

Commit ebae228

Browse files
committed
use s
1 parent 8bb9f0b commit ebae228

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nbdev/frontmatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def _default_exp_(self, cell, exp): self.default_exp = exp
4444
def _update(self, f, cell):
4545
s = cell.get('source')
4646
if not s: return
47-
d = f(cell.source)
47+
d = f(s)
4848
if not d: return
4949
self.fm.update(d)
5050
cell.source = None

nbs/09a_frontmatter.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
" def _update(self, f, cell):\n",
107107
" s = cell.get('source')\n",
108108
" if not s: return\n",
109-
" d = f(cell.source)\n",
109+
" d = f(s)\n",
110110
" if not d: return\n",
111111
" self.fm.update(d)\n",
112112
" cell.source = None\n",

0 commit comments

Comments
 (0)