Skip to content

Commit

Permalink
Fix flake8 linting error (sphinx-doc#11757)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfbu authored Nov 15, 2023
1 parent bb74aec commit 2d1e607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx/environment/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 2d1e607

Please sign in to comment.