Skip to content

Commit

Permalink
alternative
Browse files Browse the repository at this point in the history
  • Loading branch information
matteius committed Nov 7, 2024
1 parent a4a140f commit 3adedef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pipenv/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,8 +669,9 @@ def requirements_location(self) -> str | None:
@property
def parsed_pipfile(self) -> tomlkit.toml_document.TOMLDocument | TPipfile:
"""Parse Pipfile into a TOMLFile"""
current_atime = os.path.getatime(self.pipfile_location)
current_mtime = os.path.getmtime(self.pipfile_location)
stat_info = os.stat(self.pipfile_location)
current_atime = stat_info.st_atime_ns
current_mtime = stat_info.st_mtime_ns
if self._parsed_pipfile is not None:
if (
self._parsed_pipfile_atime == current_atime
Expand Down

0 comments on commit 3adedef

Please sign in to comment.