From febdeb11d1027627cfc05e50ae1f0550693d38f4 Mon Sep 17 00:00:00 2001 From: Vladimir Nadulich Date: Fri, 31 Oct 2025 22:28:51 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=BF=D1=83=D1=82=D1=8C=20=D0=B2=20?= =?UTF-8?q?=D1=82=D0=B5=D0=BA=D1=81=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- onec_codetemplate_parser/api.py | 3 ++- tests/{test_01.py => test_core.py} | 0 2 files changed, 2 insertions(+), 1 deletion(-) rename tests/{test_01.py => test_core.py} (100%) diff --git a/onec_codetemplate_parser/api.py b/onec_codetemplate_parser/api.py index d4d2716..ac47f8f 100644 --- a/onec_codetemplate_parser/api.py +++ b/onec_codetemplate_parser/api.py @@ -5,7 +5,8 @@ from .core import Root, parser def parse_to_src(path: str, src: str): """Парсит шаблон 1С-файла и сохраняет структуру файлов в папку""" - root = parser(path) + text = Path(path).read_text(encoding='utf-8-sig') + root = parser(text) root.to_files(src) def render_from_src(src: str, path: str): diff --git a/tests/test_01.py b/tests/test_core.py similarity index 100% rename from tests/test_01.py rename to tests/test_core.py