1
0
Fork 0

Modified script to work with python 2.6

pull/8/head
Samuel Clements 13 years ago
parent 374b9f3a26
commit 13a0a9d71c

@ -37,4 +37,4 @@ if charge < hide_when_charge_is_above:
meter = (filled * filled_char + empty * empty_char).encode('utf-8') meter = (filled * filled_char + empty * empty_char).encode('utf-8')
color = 'green'if filled > 6 else 'yellow' if filled > 4 else 'red' color = 'green'if filled > 6 else 'yellow' if filled > 4 else 'red'
sys.stdout.write("%F{{{}}}{}%f".format(color, meter)) sys.stdout.write("%F{{{0}}}{1}%f".format(color, meter))

Loading…
Cancel
Save