diff --git a/todo.py b/todo.py index 6b4ac54..f33cad6 100755 --- a/todo.py +++ b/todo.py @@ -2,7 +2,6 @@ # pyright: reportMissingModuleSource=false # pylint: disable=missing-docstring -from os import stat from pathlib import Path from sys import exit as sys_exit from typing import Any, Callable @@ -42,7 +41,7 @@ def get_file_modified_time(filename: Path) -> float: - return stat(filename).st_ctime + return filename.stat().st_ctime def insert_todo(