From c6071c10b8859f09f9cc7f0949d2fd7e3ad2d9c0 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 7 Jul 2010 08:41:18 +1200 Subject: Speed things up further by pre-computing which widgets are interested in which key. --- ttystatus/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ttystatus/index.py') diff --git a/ttystatus/index.py b/ttystatus/index.py index f402bea..a9e1541 100644 --- a/ttystatus/index.py +++ b/ttystatus/index.py @@ -25,7 +25,7 @@ class Index(ttystatus.Widget): self.name = name self.listname = listname self.value = self.format(0, 0) - self.interesting_keys = set([name, listname]) + self.interesting_keys = [name, listname] def format(self, index, listlen): return '%d/%d' % (index, listlen) -- cgit v1.2.1