From 13a0a9d71cbf5d235374e959dccef47342093401 Mon Sep 17 00:00:00 2001 From: Samuel Clements Date: Tue, 20 Mar 2012 12:46:15 +0000 Subject: [PATCH] Modified script to work with python 2.6 --- themes/twain/charge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/twain/charge.py b/themes/twain/charge.py index 1019c1a8..c66a73e4 100755 --- a/themes/twain/charge.py +++ b/themes/twain/charge.py @@ -37,4 +37,4 @@ if charge < hide_when_charge_is_above: meter = (filled * filled_char + empty * empty_char).encode('utf-8') 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))