This commit is contained in:
soju6jan
2022-10-03 05:10:34 +09:00
parent 1f97c8b577
commit 4bb0a34d49

View File

@@ -63,8 +63,11 @@ class CustomFormatter(logging.Formatter):
# Suuport를 logger 생성전에 쓰지 않기 위해 중복 선언 # Suuport를 logger 생성전에 쓰지 않기 위해 중복 선언
def read_yaml(filepath): def read_yaml(filepath):
import re
import yaml import yaml
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)