summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2009-10-08 08:14:58 +0200
committerAnton Khirnov <wyskas@gmail.com>2009-10-08 08:14:58 +0200
commitf75f2eaa28c28a919ce08c5e1d66320963cbb414 (patch)
treec14043b5d806658c9a8877a49348d1e6978dd132
parentdaf59e2a7199181a689ac5c51bd360a03563f41b (diff)
mpclient: remove calls to str.encode()
it's now handled in lower layer
-rw-r--r--nephilim/mpclient.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nephilim/mpclient.py b/nephilim/mpclient.py
index 21cd511..c66017a 100644
--- a/nephilim/mpclient.py
+++ b/nephilim/mpclient.py
@@ -287,9 +287,9 @@ class MPClient(QtCore.QObject):
for path in paths:
self.logger.info('Adding %s to playlist'%path)
if pos < 0:
- self._client.addid(path.encode('utf-8'))
+ self._client.addid(path)
else:
- self._client.addid(path.encode('utf-8'), pos)
+ self._client.addid(path, pos)
pos += 1
try:
ret = list(self._client.command_list_end())