From 3925f7a537478dda622a3a745272e1d64cfcc4ec Mon Sep 17 00:00:00 2001 From: Jeff Tratner Date: Fri, 16 Mar 2018 09:43:54 -0700 Subject: [PATCH] Do not bother hashing --- pipenv/project.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipenv/project.py b/pipenv/project.py index d90ffc12..eb33c169 100644 --- a/pipenv/project.py +++ b/pipenv/project.py @@ -300,8 +300,8 @@ class Project(object): # Open the pipfile, read it into memory. with open(self.pipfile_location) as f: contents = f.read() - # this should be pretty fast (ish) and we need this pipfile a lot - cache_key = (self.pipfile_location, hashlib.md5(contents.encode('utf8')).hexdigest()) + # use full contents to get around str/bytes 2/3 issues + cache_key = (self.pipfile_location, contents) if cache_key not in _cache.pipfile_cache: parsed = self._parse_pipfile(contents) _cache.pipfile_cache[cache_key] = parsed