diff options
| author | Lars Wirzenius <liw@liw.fi> | 2010-07-07 08:41:18 +1200 |
|---|---|---|
| committer | Lars Wirzenius <liw@liw.fi> | 2010-07-07 08:41:18 +1200 |
| commit | c6071c10b8859f09f9cc7f0949d2fd7e3ad2d9c0 (patch) | |
| tree | 84c3df7cadc9f6527735ef5c60e03f06c68c78fc /ttystatus/string.py | |
| parent | b15fcce5b6d2046e3419b3201e38667554de53fd (diff) | |
| download | python-ttystatus-c6071c10b8859f09f9cc7f0949d2fd7e3ad2d9c0.tar.gz | |
Speed things up further by pre-computing which widgets are interested in which key.
Diffstat (limited to 'ttystatus/string.py')
| -rw-r--r-- | ttystatus/string.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ttystatus/string.py b/ttystatus/string.py index 6806b01..950791c 100644 --- a/ttystatus/string.py +++ b/ttystatus/string.py @@ -23,7 +23,7 @@ class String(ttystatus.Widget): def __init__(self, key): self._key = key - self.interesting_keys = set([key]) + self.interesting_keys = [key] def update(self, master, width): self.value = master[self._key] |
