This commit is contained in:
soju6jan
2022-10-03 12:49:01 +09:00
parent 9c36ab1368
commit 335210adb9
2 changed files with 3 additions and 25 deletions

View File

@@ -63,19 +63,8 @@ class CustomFormatter(logging.Formatter):
# Suuport를 logger 생성전에 쓰지 않기 위해 중복 선언
def read_yaml(filepath):
import re
import yaml
print('111111111111')
print(filepath)
print('222222')
import sys
print(sys.argv)
print('333333333333')
yaml.reader.Reader.NON_PRINTABLE = re.compile('[^\t\n\r -<2D>-\U0010ffff]')
with open(filepath, encoding='utf8') as file:
#with open(filepath, 'rb') as file:
data = yaml.load(file, Loader=yaml.FullLoader)
return data