From d1aea86f7bfd79a2ac7c924ecbd02f6b27f8d997 Mon Sep 17 00:00:00 2001 From: Oz N Tiram Date: Tue, 13 Sep 2022 15:31:10 +0200 Subject: [PATCH] Fix get_hash method --- pipenv/core.py | 2 +- pipenv/project.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"""