python-unittest2/Modify-late_version-return-to-str.patch
yangchenguang 8027fb7ad5 fix build error : modify late_version return to str
Signed-off-by: yangchenguang <yangchenguang@kylinsec.com.cn>
(cherry picked from commit 2ea534991edc889586a689c60e6e8896f1479a32)
2024-03-18 11:03:05 +08:00

27 lines
679 B
Diff

From de3ec76aba458b2b2ba58d1707dc9ecc82387eab Mon Sep 17 00:00:00 2001
From: yangchenguang <yangchenguang@kylinsec.com.cn>
Date: Thu, 14 Mar 2024 17:46:00 +0800
Subject: [PATCH] Modify late_version return to str
Signed-off-by: yangchenguang <yangchenguang@kylinsec.com.cn>
---
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index 416afbe..fbaafa7 100755
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,7 @@ class late_version:
return str(self) + other
def replace(self, old, new):
return str(self).replace(old, new)
-VERSION = late_version()
+VERSION = str(late_version())
NAME = 'unittest2'
--
2.39.1