Skip to content

Commit 2c6ed81

Browse files
committed
Be less strict when detecting version
I think this fixes #4 for me, but I use nix-env, not virtualenv. SublimeLinter will try to import the file as module, fail, and fall back to executing it. In theory.
1 parent 37b0cb6 commit 2c6ed81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Pylint(PythonLinter):
2727
'--persistent=n', # don't save the old score (no sense for temp)
2828
)
2929
version_args = '--version'
30-
version_re = r'^pylint.* (?P<version>\d+\.\d+\.\d+),'
30+
version_re = r'pylint.* (?P<version>\d+\.\d+\.\d+),'
3131
version_requirement = '>= 1.0'
3232
regex = (
3333
r'^(?P<line>\d+):(?P<col>\d+):'

0 commit comments

Comments
 (0)