diff --git a/pipenv/core.py b/pipenv/core.py index a21da79c..dc40da92 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -1218,7 +1218,7 @@ def do_init( if (project.lockfile_exists and not ignore_pipfile) and not skip_lock: old_hash = project.get_lockfile_hash() new_hash = project.calculate_pipfile_hash() - if new_hash.value != old_hash: + if new_hash != old_hash: if deploy: click.secho( "Your Pipfile.lock ({}) is out of date. Expected: ({}).".format( diff --git a/pipenv/project.py b/pipenv/project.py index 8f4a8986..6f52b51d 100644 --- a/pipenv/project.py +++ b/pipenv/project.py @@ -1011,7 +1011,7 @@ class Project: def calculate_pipfile_hash(self): # Update the lockfile if it is out-of-date. p = plette.Pipfile.load(open(self.pipfile_location)) - return p.get_hash() + return p.get_hash().value def ensure_proper_casing(self): """Ensures proper casing of Pipfile packages"""