Skip to content

Commit

Permalink
Merge pull request #2434 from pijyoi/fix-python3-pylint
Browse files Browse the repository at this point in the history
Match for pylint when parsing pylint output
  • Loading branch information
ccordoba12 committed Jun 8, 2015
2 parents 603e079 + 2744dcd commit e755341
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spyderplugins/widgets/pylintgui.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ def get_pylint_version():
shell=True if os.name == 'nt' else False)
lines = to_unicode_from_fs(process.stdout.read()).splitlines()
if lines:
match = re.match('(pylint3?|pylint-script.py) ([0-9\.]*)', lines[0])
regex = '({0}|pylint-script.py) ([0-9\.]*)'.format(PYLINT)
match = re.match(regex, lines[0])
if match is not None:
return match.groups()[1]

Expand Down

0 comments on commit e755341

Please sign in to comment.