Merge pull request #186 from facetoe/master

Remove 'u' prefix from unicode strings
This commit is contained in:
enkore 2015-03-16 16:01:00 +01:00
commit d37eb9e890
2 changed files with 3 additions and 3 deletions

View File

@ -383,7 +383,7 @@ def make_graph(values, lower_limit=0.0, upper_limit=100.0, style="blocks"):
extent = mx - mn extent = mx - mn
if style == 'blocks': if style == 'blocks':
bar = u'_▁▂▃▄▅▆▇█' bar = '_▁▂▃▄▅▆▇█'
bar_count = len(bar) - 1 bar_count = len(bar) - 1
if extent == 0: if extent == 0:
graph = '_' * len(values) graph = '_' * len(values)
@ -436,7 +436,7 @@ def make_vertical_bar(percentage, width=1):
:param width: How many characters wide the bar should be. :param width: How many characters wide the bar should be.
:returns: Bar as a String :returns: Bar as a String
""" """
bar = u' _▁▂▃▄▅▆▇█' bar = ' _▁▂▃▄▅▆▇█'
percentage //= 10 percentage //= 10
if percentage < 0: if percentage < 0:
output = bar[0] output = bar[0]

View File

@ -16,7 +16,7 @@ class Github(IntervalModule):
* `{unread_count}` - number of unread notifications, empty if 0 * `{unread_count}` - number of unread notifications, empty if 0
""" """
unread_marker = u"" unread_marker = ""
unread = '' unread = ''
color = '#78EAF2' color = '#78EAF2'
username = '' username = ''