Pipenv: Strange always-true if-statement

Created on 9 Apr 2019  路  2Comments  路  Source: pypa/pipenv

Issue description

I was investigating some weird action-at-a-distance problem where deleting everything in ~/.local/shared/virtualenvs changed the output of:

python3.6 -m venv .venv
source .venv/bin/activate
pip install pipenv

PIPENV_PIPFILE=~/path/to/my/Pipfile pipenv sync
pipenv run pipdeptree

(Quite weird! But not the concern of this issue)

When I ran into this bit of pipenv source code

https://github.com/pypa/pipenv/blob/1b865647a1ae09957ba414ccbd7b055a65482749/pipenv/utils.py#L1382

That's always going to be True, so it's doing nothing. Also Returns the path of a Pipfile in the docstring should be Returns the path of a requirements.txt file.

Easy things to clean up 馃檪

good first issue help wanted

All 2 comments

Thanks for that, would you like to shoot a PR for this?

Closed via #3684

Was this page helpful?
0 / 5 - 0 ratings