summaryrefslogtreecommitdiff
path: root/ttystatus/index.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2010-07-07 08:41:18 +1200
committerLars Wirzenius <liw@liw.fi>2010-07-07 08:41:18 +1200
commitc6071c10b8859f09f9cc7f0949d2fd7e3ad2d9c0 (patch)
tree84c3df7cadc9f6527735ef5c60e03f06c68c78fc /ttystatus/index.py
parentb15fcce5b6d2046e3419b3201e38667554de53fd (diff)
downloadpython-ttystatus-c6071c10b8859f09f9cc7f0949d2fd7e3ad2d9c0.tar.gz
Speed things up further by pre-computing which widgets are interested in which key.
Diffstat (limited to 'ttystatus/index.py')
-rw-r--r--ttystatus/index.py2
1 files changed, 1 insertions, 1 deletions
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)