Remove 'u' prefix from unicode strings as it is no longer required in Python3

This commit is contained in:
facetoe 2015-03-16 19:45:50 +08:00
parent 22b5abf899
commit 16b3799b91
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
if style == 'blocks':
bar = u'_▁▂▃▄▅▆▇█'
bar = '_▁▂▃▄▅▆▇█'
bar_count = len(bar) - 1
if extent == 0:
graph = '_' * len(values)
@ -436,7 +436,7 @@ def make_vertical_bar(percentage, width=1):
:param width: How many characters wide the bar should be.
:returns: Bar as a String
"""
bar = u' _▁▂▃▄▅▆▇█'
bar = ' _▁▂▃▄▅▆▇█'
percentage //= 10
if percentage < 0:
output = bar[0]

View File

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