mirror of
https://github.com/nvbn/thefuck.git
synced 2025-09-19 11:42:33 +01:00
make it python 3 friendly
This commit is contained in:
@@ -22,7 +22,7 @@ def _get_candidate_commands(command, settings):
|
|||||||
if "No command" in output and "from package" in output:
|
if "No command" in output and "from package" in output:
|
||||||
fixed_names = re.findall(r"Command '([^']*)' from package",
|
fixed_names = re.findall(r"Command '([^']*)' from package",
|
||||||
output)
|
output)
|
||||||
return filter(which, fixed_names)
|
return [name for name in fixed_names if which(name)]
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user