Fix check_comment_ascii.py
This commit is contained in:
parent
6b52f7df5a
commit
7538e218a5
1 changed files with 3 additions and 2 deletions
|
|
@ -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 `#`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue