From f2b444712671cc4935bb47ecb62ab81929783687 Mon Sep 17 00:00:00 2001 From: Lennart Braun Date: Fri, 26 Feb 2016 16:18:12 +0100 Subject: [PATCH] Fix explicit utf-8 encoding --- i3pystatus/mpd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3pystatus/mpd.py b/i3pystatus/mpd.py index feeb178..5d9ffd7 100644 --- a/i3pystatus/mpd.py +++ b/i3pystatus/mpd.py @@ -74,7 +74,7 @@ class MPD(IntervalModule): sock = self.s sock.recv(8192) if self.password is not None: - sock.send('password "{}"\n'.format(self.password).encode()) + sock.send('password "{}"\n'.format(self.password).encode("utf-8")) sock.recv(8192) sock.send((command + "\n").encode("utf-8")) try: