summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2009-10-09 20:35:20 +0200
committerAnton Khirnov <wyskas@gmail.com>2009-10-09 20:35:20 +0200
commited994a9f50d52b31a420042e195574bdcf41038c (patch)
tree2750b6088effd273209149163652b4aee1839981
parente1b0df018826dcb324d978937057c4f4b47c9252 (diff)
mpd: str -> unicode
-rw-r--r--nephilim/mpd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nephilim/mpd.py b/nephilim/mpd.py
index 416bd72..b2cb119 100644
--- a/nephilim/mpd.py
+++ b/nephilim/mpd.py
@@ -164,7 +164,7 @@ class MPDClient(QtCore.QObject):
def _writecommand(self, command, args=[]):
parts = [command]
for arg in args:
- parts.append('"%s"' % escape(str(arg)))
+ parts.append('"%s"' % escape(unicode(arg)))
self.__sock.write(' '.join(parts).encode('utf-8') + '\n')
self.__sock.waitForBytesWritten()