diff options
author | Mike Crute <mcrute@gmail.com> | 2015-07-07 20:20:02 -0700 |
---|---|---|
committer | Mike Crute <mcrute@gmail.com> | 2015-07-07 20:20:02 -0700 |
commit | 28ce5619d8f3371c7dda51e1a4493a7b940ae106 (patch) | |
tree | 7f8e8850470385feab6c4f7f330308b0a9446979 /pydora | |
parent | 260c3a57a6db7cb8428a3a52372d1c2dcb9e22d1 (diff) | |
download | pydora-28ce5619d8f3371c7dda51e1a4493a7b940ae106.tar.bz2 pydora-28ce5619d8f3371c7dda51e1a4493a7b940ae106.tar.xz pydora-28ce5619d8f3371c7dda51e1a4493a7b940ae106.zip |
Don't use u for unicode strings
Fixes #21
Diffstat (limited to 'pydora')
-rwxr-xr-x | pydora/player.py | 2 | ||||
-rw-r--r-- | pydora/utils.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pydora/player.py b/pydora/player.py index 95a4dca..b756ef0 100755 --- a/pydora/player.py +++ b/pydora/player.py | |||
@@ -63,7 +63,7 @@ class PlayerApp(object): | |||
63 | def play(self, song): | 63 | def play(self, song): |
64 | """Play callback | 64 | """Play callback |
65 | """ | 65 | """ |
66 | print(u'{} by {}'.format(Colors.cyan(song.song_name), | 66 | print('{} 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): |
diff --git a/pydora/utils.py b/pydora/utils.py index 18dc5d4..bf5f4ce 100644 --- a/pydora/utils.py +++ b/pydora/utils.py | |||
@@ -19,8 +19,8 @@ class Colors(object): | |||
19 | def inner(text, bold=False): | 19 | def inner(text, bold=False): |
20 | c = code | 20 | c = code |
21 | if bold: | 21 | if bold: |
22 | c = u"1;{}".format(c) | 22 | c = "1;{}".format(c) |
23 | return u"\033[{}m{}\033[0m".format(c, text) | 23 | return "\033[{}m{}\033[0m".format(c, text) |
24 | return inner | 24 | return inner |
25 | 25 | ||
26 | red = __wrap_with('31') | 26 | red = __wrap_with('31') |