diff --git a/pipenv/project.py b/pipenv/project.py index 3fdefffa..9654a217 100644 --- a/pipenv/project.py +++ b/pipenv/project.py @@ -12,7 +12,7 @@ import delegator from requests.compat import OrderedDict from .utils import (format_toml, mkdir_p, convert_deps_from_pip, - pep423_name, recase_file, find_requirements, shellquote) + pep423_name, recase_file, find_requirements) from .environments import PIPENV_MAX_DEPTH, PIPENV_VENV_IN_PROJECT from .environments import PIPENV_USE_SYSTEM diff --git a/pipenv/utils.py b/pipenv/utils.py index 6de8c034..62a2984a 100644 --- a/pipenv/utils.py +++ b/pipenv/utils.py @@ -23,7 +23,7 @@ class PipCommand(pip.basecommand.Command): def shellquote(s): - return "'" + s.replace("'", "'\\''").replace(' ', '\\ ') + "'" + return "'" + s.replace("'", "'\\''") + "'" def resolve_deps(deps, sources=None, verbose=False, hashes=False):