Skip to content

Commit a9651c8

Browse files
authored
Merge pull request #199 from casperdcl/fix-windows-encoding-error
read config in unicode
2 parents 1ad2747 + 6074cd5 commit a9651c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nbval/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def setup_sanitize_files(self):
277277
load the contents of the file into the sanitise patterns dictionary.
278278
"""
279279
for fname in self.get_sanitize_files():
280-
with open(fname, 'r') as f:
280+
with open(fname, 'r', encoding="utf-8") as f:
281281
self.sanitize_patterns.update(get_sanitize_patterns(f.read()))
282282

283283

0 commit comments

Comments
 (0)