diff options
Diffstat (limited to 'sbolint')
| -rwxr-xr-x | sbolint | 7 | 
1 files changed, 4 insertions, 3 deletions
| @@ -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;  		}  	} | 
