changeset 33288:f08a178adadf

contrib: widen "direct use of `python`" net again I think I've now caught all of them. Differential Revision: https://phab.mercurial-scm.org/D15
author Augie Fackler <augie@google.com>
date Thu, 06 Jul 2017 15:15:02 -0400
parents e26a3adc8f5c
children abd7dedbaa36
files contrib/check-code.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/check-code.py	Thu Jul 06 14:33:48 2017 -0500
+++ b/contrib/check-code.py	Thu Jul 06 15:15:02 2017 -0400
@@ -138,7 +138,7 @@
      "put a backslash-escaped newline after sed 'i' command"),
     (r'^diff *-\w*[uU].*$\n(^  \$ |^$)', "prefix diff -u/-U with cmp"),
     (r'^\s+(if)? diff *-\w*[uU]', "prefix diff -u/-U with cmp"),
-    (r'\spython\s(?!bindings)', "don't use 'python', use '$PYTHON'"),
+    (r'[\s="`\']python\s(?!bindings)', "don't use 'python', use '$PYTHON'"),
     (r'seq ', "don't use 'seq', use $TESTDIR/seq.py"),
     (r'\butil\.Abort\b', "directly use error.Abort"),
     (r'\|&', "don't use |&, use 2>&1"),