remove extra helper method
@@ -199,11 +199,6 @@ class PythonEnvironment:
env_vars_hash != self._get_env_vars_hash(),
])
- def _get_env_vars(self):
- """Return env vars with their values of the project as a dictionary."""
- env_vars = self.version.project.environment_variables
- return env_vars
-
def _get_env_vars_hash(self):
"""
Returns the sha256 hash of all the environment variables and their values.
@@ -212,7 +207,7 @@ class PythonEnvironment:
it returns sha256 hash of empty string.
"""
m = hashlib.sha256()
- env_vars = self._get_env_vars()
+ env_vars = self.version.project.environment_variables
for variable, value in env_vars.items():
hash_str = f'_{variable}_{value}_'
m.update(hash_str.encode('utf-8'))
