From 5d67f043d35e0df0e19f5f81b421a80ea60a6303 Mon Sep 17 00:00:00 2001 From: Toshiyuki NH Date: Wed, 27 Nov 2024 21:19:57 +0900 Subject: [PATCH] fix #37 --- directory_structure_py/rocrate_models.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/directory_structure_py/rocrate_models.py b/directory_structure_py/rocrate_models.py index 3beb1b9..43e1a68 100644 --- a/directory_structure_py/rocrate_models.py +++ b/directory_structure_py/rocrate_models.py @@ -70,15 +70,5 @@ def write(self, dest_base, template_path: str = None): else: write_path = Path(dest_base) / self.id out_html = self.generate_html(template_path) - with open(write_path, 'w') as outfile: + with open(write_path, 'w', encoding="utf-8") as outfile: outfile.write(out_html) - -class ROCrate(ROCrateOrigin): - """ - Customized ROCrate class - """ - - def __init__(self, source=None, gen_preview=False, init=False, exclude=None, template_path: str = None): - super().__init__(source, gen_preview=False, init=init, exclude=exclude) - if gen_preview: - self.add(Preview(self))