This commit is contained in:
jxxghp
2025-05-08 20:37:04 +08:00
parent 30ce32608a
commit 63412ddd42

View File

@@ -53,7 +53,9 @@ class ObjectUtils:
if not line:
continue
# 处理"""单行注释
if line.startswith(('"""', "'''")) and line.endswith(('"""', "'''")):
if (line.startswith(('"""', "'''"))
and line.endswith(('"""', "'''"))
and len(line) > 3):
continue
# 处理"""多行注释
if line.startswith(('"""', "'''")):