just return the first result normally

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2017-09-18 14:05:57 -04:00
parent 4e2e6d3a26
commit 22e26bb9cf
+1 -1
View File
@@ -1194,7 +1194,7 @@ def system_which(command, mult=False):
if mult:
return result.split('\n')
else:
result
result.split('\n')[0]
def format_help(help):
"""Formats the help string."""