From ea17fe5c57b81061a6da8a8357975d038a611c47 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 5 Aug 2012 18:26:39 +0200 Subject: [PATCH] Unix: Decode stream for the command line in sysuname. --- plugins/Unix/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Unix/plugin.py b/plugins/Unix/plugin.py index 067a0a4a9..b0b6d3fab 100644 --- a/plugins/Unix/plugin.py +++ b/plugins/Unix/plugin.py @@ -361,7 +361,7 @@ class Unix(callbacks.Plugin): (out, err) = inst.communicate() inst.wait() lines = out.splitlines() - lines = map(str.rstrip, lines) + lines = [x.decode('utf8').rstrip() for x in lines] lines = filter(None, lines) irc.replies(lines, joiner=' ') else: