From 0346e8fe9f0c2c06edf9f7ef9f1bedaa1095d63e Mon Sep 17 00:00:00 2001 From: Nate Prewitt Date: Sat, 28 Jan 2017 22:36:40 -0700 Subject: [PATCH] update docstrings to match changes --- pipenv/cli.py | 5 +++-- pipenv/utils.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pipenv/cli.py b/pipenv/cli.py index 98b975d9..7668e01e 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -99,7 +99,7 @@ def ensure_project(three=None, python=None): def ensure_proper_casing(): - """Ensures proper casing of Pipfile packages, writes to disk.""" + """Ensures proper casing of Pipfile packages, writes changes to disk.""" p = project.parsed_pipfile def proper_case_section(section): @@ -257,11 +257,12 @@ def do_download_dependencies(dev=False, only=False, bare=False): return name_map + def parse_install_output(output): """Parse output from pip download to get name and file mappings for all dependencies and their sub dependencies. - This is required for proper file hashing with --require-hashes + This is required for proper file hashing with --require-hashes. """ output_sections = output.split('Collecting ') names = [] diff --git a/pipenv/utils.py b/pipenv/utils.py index ec68cf31..d62d724c 100644 --- a/pipenv/utils.py +++ b/pipenv/utils.py @@ -15,7 +15,6 @@ def format_toml(data): return '\n'.join(data) - def multi_split(s, split): """Splits on multiple given separators.""" for r in split: @@ -131,6 +130,7 @@ def mkdir_p(newdir): if tail: os.mkdir(newdir) + def is_required_version(version, specified_version): """Check to see if there's a hard requirement for version number provided in the Pipfile.