Skip to content

Commit 55edc78

Browse files
committed
sync
1 parent 2a4ee76 commit 55edc78

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

execnb/_modidx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@
4646
'execnb.shell._format_mimedata': ('shell.html#_format_mimedata', 'execnb/shell.py'),
4747
'execnb.shell._out_exc': ('shell.html#_out_exc', 'execnb/shell.py'),
4848
'execnb.shell._out_stream': ('shell.html#_out_stream', 'execnb/shell.py'),
49-
'execnb.shell.exec_nb': ('shell.html#exec_nb', 'execnb/shell.py')}}}
49+
'execnb.shell.exec_nb': ('shell.html#exec_nb', 'execnb/shell.py')}}}

execnb/nbio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,6 @@ def write_nb(nb, path):
9191
"Write `nb` to `path`"
9292
new = nb2str(nb)
9393
path = Path(path)
94-
old = Path(path).read_text(encoding="utf-8") if path.exists() else None
94+
old = Path(path).read_text(encoding='utf-8') if path.exists() else None
9595
if new!=old:
9696
with open(path, 'w', encoding='utf-8') as f: f.write(new)

nbs/01_nbio.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@
525525
" \"Write `nb` to `path`\"\n",
526526
" new = nb2str(nb)\n",
527527
" path = Path(path)\n",
528-
" old = Path(path).read_text() if path.exists() else None\n",
528+
" old = Path(path).read_text(encoding='utf-8') if path.exists() else None\n",
529529
" if new!=old:\n",
530530
" with open(path, 'w', encoding='utf-8') as f: f.write(new)"
531531
]

0 commit comments

Comments
 (0)