From 4fe4408736268e3a2c8437cca70625b4fc1a4a3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BAlio=20Rieger=20Lucchese?= Date: Sun, 2 Nov 2014 14:14:43 -0200 Subject: [PATCH] Fix blank lines and whitespaces --- i3pystatus/pianobar.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/i3pystatus/pianobar.py b/i3pystatus/pianobar.py index eb33525..a05b94b 100644 --- a/i3pystatus/pianobar.py +++ b/i3pystatus/pianobar.py @@ -1,10 +1,11 @@ from i3pystatus import IntervalModule + class Pianobar(IntervalModule): """ Shows the title and artist name of the current music - In pianobar config file must be setted the fifo and event_command options + In pianobar config file must be setted the fifo and event_command options (see man pianobar for more information) Mouse events: @@ -25,7 +26,7 @@ class Pianobar(IntervalModule): def run(self): with open(self.songfile, "r") as f: - contents = f.readlines() + contents = f.readlines() sn = contents[0].strip() sa = contents[1].strip() @@ -36,13 +37,13 @@ class Pianobar(IntervalModule): } def on_leftclick(self): - open(self.ctlfile,"w").write("p") + open(self.ctlfile, "w").write("p") def on_rightclick(self): - open(self.ctlfile,"w").write("n") + open(self.ctlfile, "w").write("n") def on_upscroll(self): - open(self.ctlfile,"w").write(")") + open(self.ctlfile, "w").write(")") def on_downscroll(self): - open(self.ctlfile,"w").write("(") + open(self.ctlfile, "w").write("(")