From: Michael Tremer Date: Fri, 7 May 2021 11:11:21 +0000 (+0000) Subject: system: Do not take string apart X-Git-Tag: v2.2.0~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f2f97603d58c038cc069f11e7c4e0ae372e4892;p=oddments%2Ffireinfo.git system: Do not take string apart This was converted incorrectly by 2to3 and returned a list instead of a string which is being fixed in this patch. Signed-off-by: Michael Tremer --- diff --git a/src/fireinfo/system.py b/src/fireinfo/system.py index 63b67fc..4c0b0a3 100644 --- a/src/fireinfo/system.py +++ b/src/fireinfo/system.py @@ -337,7 +337,7 @@ class System(object, metaclass=Singleton): if s is None: return - return [x for x in s if x in string.printable] + return "".join([x for x in s if x in string.printable]) @property def vendor(self):