From d0b50e5621afc38190fe17a9d301de365ee950d3 Mon Sep 17 00:00:00 2001 From: LoveDoLove Date: Sun, 5 Jul 2026 15:48:16 +0800 Subject: [PATCH] Fix VSVersionInfo deserialization: use str() not repr() for eval-safe format --- LDLWinToolBox.spec | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LDLWinToolBox.spec b/LDLWinToolBox.spec index 427580f..630b267 100644 --- a/LDLWinToolBox.spec +++ b/LDLWinToolBox.spec @@ -54,7 +54,7 @@ vers = VSVersionInfo( vers_file = here / "build" / "version_info.txt" vers_file.parent.mkdir(parents=True, exist_ok=True) -vers_file.write_text(repr(vers), encoding="utf-8") +vers_file.write_text(str(vers), encoding="utf-8") a = Analysis( # noqa: F821 ["ldlwintoolbox.py"], diff --git a/pyproject.toml b/pyproject.toml index 2c9fc29..79291b6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "ldlwintoolbox" -version = "1.0.6" +version = "1.0.7" description = "LDL Windows ToolBox in Python" readme = "README.md" requires-python = ">=3.11"