summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bachelier <laurent@bachelier.name>2010-01-17 14:13:13 +0100
committerLaurent Bachelier <laurent@bachelier.name>2010-01-17 14:13:13 +0100
commit922e641a6bdbb2ad9f43368b59d25c0c9e236bd5 (patch)
tree4c4b92704652b6023c8d902c3ea1c825298ece52
parentMove to git (diff)
downloadmpdat-922e641a6bdbb2ad9f43368b59d25c0c9e236bd5.tar.xz
Remove whitespace
-rwxr-xr-xmpdrast/client.py4
-rw-r--r--mpdrast/process.py6
2 files changed, 5 insertions, 5 deletions
diff --git a/mpdrast/client.py b/mpdrast/client.py
index 1a659be..fb52068 100755
--- a/mpdrast/client.py
+++ b/mpdrast/client.py
@@ -16,7 +16,7 @@ class MPDrastClient(mpd.MPDClient):
if len(infos) == 2:
password = infos[0]
host = infos[1]
-
+
mpd.MPDClient.connect(self, host, port)
if password:
self.password(password)
@@ -25,7 +25,7 @@ class MPDrastClient(mpd.MPDClient):
def update_final_dirs(self, path="", first=True):
if first:
self.final_dirs = []
-
+
items = self.lsinfo(path)
if first and not items:
raise Exception("database is empty")
diff --git a/mpdrast/process.py b/mpdrast/process.py
index 81f0b2a..c749c30 100644
--- a/mpdrast/process.py
+++ b/mpdrast/process.py
@@ -17,9 +17,9 @@ class MPDrastProcess:
dirs.append(item["directory"])
elif item.has_key("file"):
files.append(item["file"])
-
+
return (files, dirs)
-
+
@staticmethod
def process_song(item):
"""
@@ -30,5 +30,5 @@ class MPDrastProcess:
if item.has_key("pos"):
item["pos"] = int(item["pos"])
-
+
return item