File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 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' )}}}
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change 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 ]
You can’t perform that action at this time.
0 commit comments