Unix: Decode stream for the command line in sysuname.

This commit is contained in:
Valentin Lorentz 2012-08-05 18:26:39 +02:00
parent 4fc1e934c7
commit ea17fe5c57

View File

@ -361,7 +361,7 @@ class Unix(callbacks.Plugin):
(out, err) = inst.communicate() (out, err) = inst.communicate()
inst.wait() inst.wait()
lines = out.splitlines() lines = out.splitlines()
lines = map(str.rstrip, lines) lines = [x.decode('utf8').rstrip() for x in lines]
lines = filter(None, lines) lines = filter(None, lines)
irc.replies(lines, joiner=' ') irc.replies(lines, joiner=' ')
else: else: