summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/dist/s_python
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/dist/s_python')
-rwxr-xr-xsrc/third_party/wiredtiger/dist/s_python4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/third_party/wiredtiger/dist/s_python b/src/third_party/wiredtiger/dist/s_python
index b8aa5848637..bfe3ba57783 100755
--- a/src/third_party/wiredtiger/dist/s_python
+++ b/src/third_party/wiredtiger/dist/s_python
@@ -17,10 +17,10 @@ test -s $t && {
echo '[tab] characters appear in Python scripts:'
cat $t
}
-# Check Python coding standards: check for trailing semi-colons.
+# Check Python coding standards: check for uncommented trailing semi-colons.
# Don't check too widely, there are third-party tools that fail this test as
# well as scripts in this directory that output C code, and so fail the test.
-egrep ';$' `find lang test -name '*.py'`> $t
+egrep '^[^#]*;$' `find lang test -name '*.py'`> $t
test -s $t && {
echo 'trailing semi-colons in selected Python code:'
cat $t