Skip to content

Commit

Permalink
Removed an unused import due to the deprecation of the previous salt.…
Browse files Browse the repository at this point in the history
…utils.path.which, and removed spaces from a set comprehension that the saltstack's linter didn't like.
  • Loading branch information
arizvisa committed Feb 23, 2019
1 parent a28451f commit 0989551
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions salt/utils/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import salt.utils.platform
import salt.utils.stringutils
from salt.exceptions import CommandNotFoundError
from salt.utils.decorators import memoize as real_memoize
from salt.utils.decorators.jinja import jinja_filter

# Import 3rd-party libs
Expand Down Expand Up @@ -249,7 +248,7 @@ def has_executable_ext(path, ext_membership):
# memoization with a function that has no arguments, this provides
# the exact same benefit
pathext = res.split(os.pathsep)
res = { ext.lower() for ext in pathext }
res = {ext.lower() for ext in pathext}

# ...apparently nobody uses operator or functools(?)
is_executable = lambda path, membership=res: is_executable_common(path) and has_executable_ext(path, membership)
Expand Down

0 comments on commit 0989551

Please sign in to comment.