Skip to content

Commit

Permalink
Do not round cache mtimes
Browse files Browse the repository at this point in the history
Fixes psf#4116

This logic was introduced in psf#3821, I believe as a result of copying
logic inside mypy that I think isn't relevant to Black
  • Loading branch information
hauntsaninja committed Dec 25, 2023
1 parent a0e270d commit ed5e79c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/black/cache.py
Expand Up @@ -101,7 +101,7 @@ def is_changed(self, source: Path) -> bool:
st = res_src.stat()
if st.st_size != old.st_size:
return True
if int(st.st_mtime) != int(old.st_mtime):
if st.st_mtime != old.st_mtime:
new_hash = Cache.hash_digest(res_src)
if new_hash != old.hash:
return True
Expand Down

0 comments on commit ed5e79c

Please sign in to comment.