Skip to content

Commit cf3622c

Browse files
authored
Merge pull request #4349 from takluyver/io-open-fd
Use io.open in notebookapp.py to fix #4303
2 parents bc459d0 + f8d7d40 commit cf3622c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebook/notebookapp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1739,7 +1739,7 @@ def launch_browser(self):
17391739

17401740
# Write a temporary file to open in the browser
17411741
fd, open_file = tempfile.mkstemp(suffix='.html')
1742-
with open(fd, 'w', encoding='utf-8') as fh:
1742+
with io.open(fd, 'w', encoding='utf-8') as fh:
17431743
self._write_browser_open_file(uri, fh)
17441744
else:
17451745
open_file = self.browser_open_file

0 commit comments

Comments
 (0)