Fix check_comment_ascii.py

This commit is contained in:
Zhichang Yu
2025-11-14 11:45:32 +08:00
parent 7538e218a5
commit 1d4d67daf8

View File

@@ -1,4 +1,15 @@
#!/usr/bin/env python3
"""
Check whether given python files contain non-ASCII comments.
How to check the whole git repo:
```
$ git ls-files -z -- '*.py' | xargs -0 python3 check_comment_ascii.py
```
"""
import sys
import tokenize
import ast