From 2d1e60748fe8bef6958c4747ce0a59b36f284c06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20B?= <2589111+jfbu@users.noreply.github.com> Date: Wed, 15 Nov 2023 17:14:34 +0100 Subject: [PATCH] Fix flake8 linting error (#11757) --- sphinx/environment/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/environment/__init__.py b/sphinx/environment/__init__.py index 9b9e9dd306a..24fbe33d4e3 100644 --- a/sphinx/environment/__init__.py +++ b/sphinx/environment/__init__.py @@ -751,7 +751,7 @@ def _last_modified_time(filename: str | os.PathLike[str]) -> int: def _format_modified_time(timestamp: int) -> str: """Return an RFC 3339 formatted string representing the given timestamp.""" seconds, fraction = divmod(timestamp, 10**6) - return time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime(seconds)) + f'.{fraction//1_000}' + return time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime(seconds)) + f'.{fraction // 1_000}' def _traverse_toctree(