mirror of
https://github.com/zensical/zensical.git
synced 2026-10-08 22:01:21 +00:00
chore: drop Python 3.10 support
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
This commit is contained in:
1 parent
acee50c11a
commit
4559ba85df
7 files changed
+21
-240
No files matched your search
@@ -891,7 +891,7 @@ def _get_git_info() -> dict[str, Any]:
|
||||
text=True,
|
||||
stderr=subprocess.DEVNULL,
|
||||
).strip()
|
||||
except FileNotFoundError as error: # noqa: PERF203
|
||||
except FileNotFoundError as error:
|
||||
# Git executable not found, abort early.
|
||||
return {
|
||||
"status": False,
|
||||
@@ -912,9 +912,7 @@ def _get_git_info() -> dict[str, Any]:
|
||||
else:
|
||||
result[field_name] = output
|
||||
if field_name == "date_ISO":
|
||||
result["date"] = datetime.fromisoformat(
|
||||
output.replace("Z", "+00:00")
|
||||
)
|
||||
result["date"] = datetime.fromisoformat(output)
|
||||
result["status"] = True
|
||||
|
||||
return result
|
||||
|
||||
Reference in new issue
Block a user