From 28ce5619d8f3371c7dda51e1a4493a7b940ae106 Mon Sep 17 00:00:00 2001 From: Mike Crute Date: Tue, 7 Jul 2015 20:20:02 -0700 Subject: Don't use u for unicode strings Fixes #21 --- pydora/player.py | 2 +- pydora/utils.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'pydora') 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): def play(self, song): """Play callback """ - print(u'{} by {}'.format(Colors.cyan(song.song_name), + print('{} by {}'.format(Colors.cyan(song.song_name), Colors.yellow(song.artist_name))) 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): def inner(text, bold=False): c = code if bold: - c = u"1;{}".format(c) - return u"\033[{}m{}\033[0m".format(c, text) + c = "1;{}".format(c) + return "\033[{}m{}\033[0m".format(c, text) return inner red = __wrap_with('31') -- cgit v1.2.3