Merge branch 'do-not-destroy-lock' of https://github.com/frostming/pipenv into atomic-lockfile-overwrite

This commit is contained in:
Tzu-ping Chung
2018-04-27 14:39:16 +08:00
2 changed files with 0 additions and 10 deletions
-2
View File
@@ -1005,8 +1005,6 @@ def do_lock(
)
sys.exit(1)
cached_lockfile = project.lockfile_content
if write:
project.destroy_lockfile()
if write:
# Alert the user of progress.
click.echo(
-8
View File
@@ -673,14 +673,6 @@ class Project(object):
return found_source
raise SourceNotFound(name or url)
def destroy_lockfile(self):
"""Deletes the lockfile."""
try:
return os.remove(self.lockfile_location)
except OSError:
pass
def get_package_name_in_pipfile(self, package_name, dev=False):
"""Get the equivalent package name in pipfile"""
key = 'dev-packages' if dev else 'packages'