make it python 3 friendly

This commit is contained in:
Jon Mason
2015-04-18 16:46:02 -05:00
parent ac545c6f0a
commit 8a2bc75e55
+1 -1
View File
@@ -22,7 +22,7 @@ def _get_candidate_commands(command, settings):
if "No command" in output and "from package" in output:
fixed_names = re.findall(r"Command '([^']*)' from package",
output)
return filter(which, fixed_names)
return [name for name in fixed_names if which(name)]
return []