mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #47017 from Unity-Technologies/hotfix/pip_windows
Don’t encode a unicode string
This commit is contained in:
commit
d8c4c221cf
1 changed files with 2 additions and 1 deletions
|
@ -130,7 +130,8 @@ def _get_pip_bin(bin_env):
|
|||
'pip{0}'.format(sys.version_info[0]),
|
||||
'pip', 'pip-python']
|
||||
)
|
||||
if salt.utils.platform.is_windows() and six.PY2:
|
||||
if salt.utils.platform.is_windows() and six.PY2 \
|
||||
and isinstance(which_result, str):
|
||||
which_result.encode('string-escape')
|
||||
if which_result is None:
|
||||
raise CommandNotFoundError('Could not find a `pip` binary')
|
||||
|
|
Loading…
Add table
Reference in a new issue