Skip to content

Commit 2a1b8d9

Browse files
committed
Fix UTF-8 not used when importing YAML
1 parent 759d9fc commit 2a1b8d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929

3030
def load_yaml(configfile):
31-
with open(configfile, "r") as stream:
31+
with open(configfile, "rt", encoding='utf8') as stream:
3232
yamlconfig = yaml.safe_load(stream)
3333
return yamlconfig
3434

0 commit comments

Comments
 (0)