We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45c00f8 commit 7b23e6eCopy full SHA for 7b23e6e
test/lint/lint-python-utf8-encoding.sh
@@ -7,6 +7,7 @@
7
# Make sure we explicitly open all text files using UTF-8 (or ASCII) encoding to
8
# avoid potential issues on the BSDs where the locale is not always set.
9
10
+export LC_ALL=C
11
EXIT_CODE=0
12
OUTPUT=$(git grep " open(" -- "*.py" | grep -vE "encoding=.(ascii|utf8|utf-8)." | grep -vE "open\([^,]*, ['\"][^'\"]*b[^'\"]*['\"]")
13
if [[ ${OUTPUT} != "" ]]; then
0 commit comments