Merge pull request #186 from facetoe/master
Remove 'u' prefix from unicode strings
This commit is contained in:
commit
d37eb9e890
@ -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]
|
||||||
|
@ -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 = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user