aboutsummaryrefslogtreecommitdiff
path: root/pydora
diff options
context:
space:
mode:
authorMike Crute <mcrute@gmail.com>2015-07-04 14:15:08 -0700
committerMike Crute <mcrute@gmail.com>2015-07-04 14:26:37 -0700
commit6e02fabb657624f57b1d2b2f51b05d12206833ae (patch)
tree7ddba8a854e71682da3b4427eafe8bb48a55d706 /pydora
parent9e1f5bde5ec68f0d7cb6d6e154ca4adcf4b37efe (diff)
downloadpydora-6e02fabb657624f57b1d2b2f51b05d12206833ae.tar.bz2
pydora-6e02fabb657624f57b1d2b2f51b05d12206833ae.tar.xz
pydora-6e02fabb657624f57b1d2b2f51b05d12206833ae.zip
PEP8 cleanup
Diffstat (limited to 'pydora')
-rwxr-xr-xpydora/player.py2
-rw-r--r--pydora/utils.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/pydora/player.py b/pydora/player.py
index 3ec3293..95a4dca 100755
--- a/pydora/player.py
+++ b/pydora/player.py
@@ -64,7 +64,7 @@ class PlayerApp(object):
64 """Play callback 64 """Play callback
65 """ 65 """
66 print(u'{} by {}'.format(Colors.cyan(song.song_name), 66 print(u'{} by {}'.format(Colors.cyan(song.song_name),
67 Colors.yellow(song.artist_name))) 67 Colors.yellow(song.artist_name)))
68 68
69 def skip_song(self, song): 69 def skip_song(self, song):
70 self.player.stop() 70 self.player.stop()
diff --git a/pydora/utils.py b/pydora/utils.py
index 5027c55..18dc5d4 100644
--- a/pydora/utils.py
+++ b/pydora/utils.py
@@ -37,8 +37,8 @@ class Screen(object):
37 @staticmethod 37 @staticmethod
38 def set_echo(enabled): 38 def set_echo(enabled):
39 fd = sys.stdin.fileno() 39 fd = sys.stdin.fileno()
40 (iflag, oflag, cflag, lflag, ispeed, ospeed, cc) = \ 40 (iflag, oflag, cflag,
41 termios.tcgetattr(fd) 41 lflag, ispeed, ospeed, cc) = termios.tcgetattr(fd)
42 42
43 if enabled: 43 if enabled:
44 lflag |= termios.ECHO 44 lflag |= termios.ECHO
@@ -46,7 +46,7 @@ class Screen(object):
46 lflag &= ~termios.ECHO 46 lflag &= ~termios.ECHO
47 47
48 termios.tcsetattr(fd, termios.TCSANOW, 48 termios.tcsetattr(fd, termios.TCSANOW,
49 [iflag, oflag, cflag, lflag, ispeed, ospeed, cc]) 49 [iflag, oflag, cflag, lflag, ispeed, ospeed, cc])
50 50
51 @staticmethod 51 @staticmethod
52 def clear(): 52 def clear():