This commit is contained in:
soju6jan
2022-10-03 05:13:26 +09:00
parent 3817bf5703
commit 1742ab9cbf

View File

@@ -68,8 +68,8 @@ def read_yaml(filepath):
import yaml import yaml
yaml.reader.Reader.NON_PRINTABLE = re.compile('[^\t\n\r -<2D>-\U0010ffff]') yaml.reader.Reader.NON_PRINTABLE = re.compile('[^\t\n\r -<2D>-\U0010ffff]')
#with open(filepath, encoding='utf8') as file: with open(filepath, encoding='utf8') as file:
with open(filepath, 'rb') as file: #with open(filepath, 'rb') as file:
data = yaml.load(file, Loader=yaml.FullLoader) data = yaml.load(file, Loader=yaml.FullLoader)
return data return data