aboutsummaryrefslogtreecommitdiff
path: root/sbolint
diff options
context:
space:
mode:
Diffstat (limited to 'sbolint')
-rwxr-xr-xsbolint7
1 files changed, 4 insertions, 3 deletions
diff --git a/sbolint b/sbolint
index 1c1846f..dec7d46 100755
--- a/sbolint
+++ b/sbolint
@@ -1337,15 +1337,16 @@ sub check_script {
$old_flags = $lineno;
}
- if(/^[^#]*\bpython\b/) {
+ if(/^\s*python\s/) {
log_note("$file:$lineno: suggest replacing 'python' with 'python2' for future-proofing");
+ $have_py2 = $lineno;
}
- if(/^[^#]*\bpython2?\b/) {
+ if(/^\s*python2\s/) {
$have_py2 = $lineno;
}
- if(/^[^#]*\bpython3\b/) {
+ if(/^\s*python3\s/) {
$have_py3 = $lineno;
}
}