summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUltrabug <ultrabug@ultrabug.net>2015-06-16 23:34:36 +0200
committerUltrabug <ultrabug@ultrabug.net>2015-06-16 23:34:36 +0200
commitab739310781d1d97d31ae6a01648f523fb338fc6 (patch)
tree198ffc17ae2be7c26e9b52e961ce284b772813e9
parente0acef3a700e7bc23a589170801e144df50dba13 (diff)
parent5841d410afa29fc5c79f10fdc1464850567237c5 (diff)
Merge pull request #102 from mmlb/fix-pomodoro-py3
pomodoro: fix display_bar in python3 by @mmlb
-rw-r--r--py3status/modules/pomodoro.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/py3status/modules/pomodoro.py b/py3status/modules/pomodoro.py
index 25149a7..02b0be3 100644
--- a/py3status/modules/pomodoro.py
+++ b/py3status/modules/pomodoro.py
@@ -106,14 +106,14 @@ class Py3status:
bar += PROGRESS_BAR_ITEMS[selector]
bar_val -= 1
- bar = bar.ljust(self.num_progress_bars).encode('utf_8')
+ bar = bar.ljust(self.num_progress_bars)
else:
bar = self.timer
if self.run:
- text = '{} [{}]'.format(self.prefix, bar)
+ text = u'{} [{}]'.format(self.prefix, bar)
else:
- text = '{} ({})'.format(self.prefix, bar)
+ text = u'{} ({})'.format(self.prefix, bar)
return dict(full_text=text)