]> git.ipfire.org Git - oddments/fireinfo.git/commitdiff
system: Do not take string apart
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 7 May 2021 11:11:21 +0000 (11:11 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 7 May 2021 11:11:21 +0000 (11:11 +0000)
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 <michael.tremer@ipfire.org>
src/fireinfo/system.py

index 63b67fc53169c5ebae1e98b2c731dcfcc1ab66b1..4c0b0a358734a473937e72ec62d11666914b1aa5 100644 (file)
@@ -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):