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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user