From e15051952e2dbc8d0d890fd8a6b3652e6ae89393 Mon Sep 17 00:00:00 2001 From: Marian Steinbach Date: Thu, 3 May 2018 11:29:11 +0200 Subject: [PATCH] Fix YAML file encoding problem --- spider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spider.py b/spider.py index feb1337..2f200d8 100644 --- a/spider.py +++ b/spider.py @@ -67,7 +67,7 @@ def dir_entries(): if not filepath.endswith(".yaml"): continue - with open(filepath, 'r') as yamlfile: + with open(filepath, 'r', encoding='utf8') as yamlfile: for doc in yaml.load_all(yamlfile): yield doc