Fix check_comment_ascii.py
This commit is contained in:
parent
7538e218a5
commit
1d4d67daf8
1 changed files with 11 additions and 0 deletions
|
|
@ -1,4 +1,15 @@
|
||||||
#!/usr/bin/env python3
|
#!/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 sys
|
||||||
import tokenize
|
import tokenize
|
||||||
import ast
|
import ast
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue