Normalize fullwidth punctuation to ASCII across codebase.

Add scripts/normalize_ambiguous_unicode.py; fix corrupted patch_instance_theme_templates.py. Preserves curly quotes in string literals; removes Git homoglyph warnings on .env.example.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-08 23:42:26 +08:00
parent aaa72c7961
commit b733e551a0
392 changed files with 71522 additions and 71369 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
"""中控交易所配置hub_settings.json)。"""
"""中控交易所配置(hub_settings.json)."""
from __future__ import annotations
@@ -72,7 +72,7 @@ def _ids_from_csv(raw: str | None) -> set[str]:
def env_force_disabled_ids() -> set[str]:
# 未设置时默认不强制关闭任何账户要用旧行为可设 HUB_DISABLED_IDS=1
# 未设置时默认不强制关闭任何账户;要用旧行为可设 HUB_DISABLED_IDS=1
raw = (os.getenv("HUB_DISABLED_IDS") or "").strip()
return _ids_from_csv(raw)