From 18bf4e7971411317542df030657d0ee32c38d8d8 Mon Sep 17 00:00:00 2001 From: mecaneer23 Date: Sun, 31 Dec 2023 15:38:04 -0600 Subject: [PATCH] refactor: use Path stat instead of os stat --- todo.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(