Fix check_comment_ascii.py

This commit is contained in:
Zhichang Yu
2025-11-14 11:32:55 +08:00
parent 6b52f7df5a
commit 7538e218a5

View File

@ -5,12 +5,13 @@ import ast
import pathlib
import re
ASCII = re.compile(r"^[ -~]*\Z") # Only printable ASCII
ASCII = re.compile(r"^[\n -~]*\Z") # Printable ASCII + newline
def check(src: str, name: str) -> int:
"""
I'm a docstring
docstring line 1
docstring line 2
"""
ok = 1
# A common comment begins with `#`