From 596c5568f5f6e27e89f70035762d86bf809002a9 Mon Sep 17 00:00:00 2001 From: 苏向夜 Date: Tue, 12 Mar 2024 15:52:50 +0800 Subject: to(index): fix explaination --- src/ipm/models/index.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ipm/models/index.py b/src/ipm/models/index.py index d9051de..4c9c38b 100644 --- a/src/ipm/models/index.py +++ b/src/ipm/models/index.py @@ -10,14 +10,14 @@ import shutil class Yggdrasil: - """此对象内所有方法均为示例方法,可以按照需求和开发奇怪进行微调""" + """此对象内所有方法均为示例方法,可以按照需求和开发习惯进行微调""" def __init__(self, index: str) -> None: self.index = index.rstrip("/") + "/" self._data = self.read() def read(self) -> tomlkit.TOMLDocument: - """示例方法,读取一个本地的世界树索引文件""" + """示例方法,读取一个本地的世界树索引文件,这里使用toml只是作为样例""" if not self._source_path.exists(): self._source_path.parent.mkdir(parents=True, exist_ok=True) return tomlkit.document() @@ -40,7 +40,7 @@ class Yggdrasil: temp_dir = tempfile.TemporaryDirectory() temp_path = Path(temp_dir.name).resolve() - temp_lock_path = temp_path / "infini.lock" # 索引文件地址,这里的lock仅作示例 + temp_lock_path = temp_path / "infini.lock" # 本地索引文件地址,这里的lock仅作示例 temp_lock_file = temp_lock_path.open("wb") temp_lock_file.write(lock_bytes) -- cgit v1.2.3-70-g09d2