python-productmd/0001-fix-short-variable-none.patch

26 lines
711 B
Diff
Raw Permalink Normal View History

From 9781853e80ff20dc5f5a01bb4c90aa490c7dfd34 Mon Sep 17 00:00:00 2001
From: t_feng <fengtao40@huawei.com>
Date: Thu, 27 Aug 2020 23:38:19 +0800
Subject: [PATCH] fix short variable none
---
productmd/treeinfo.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/productmd/treeinfo.py b/productmd/treeinfo.py
index a8f472e..2404d26 100644
--- a/productmd/treeinfo.py
+++ b/productmd/treeinfo.py
@@ -246,7 +246,7 @@ class Release(BaseProduct):
self.name = "CentOS"
self.short = "CentOS"
else:
- self.short = None
+ self.short = ""
def deserialize_0_3(self, parser):
self.name = parser.get("product", "name")
--
2.23.0