diff options
| author | Ed Kellett <edk141@gmail.com> | 2013-04-29 14:23:52 +0100 |
|---|---|---|
| committer | Ed Kellett <edk141@gmail.com> | 2013-04-29 14:23:52 +0100 |
| commit | c9cbccb27b9fd3d1e8e56b7adcc22325dbdac76b (patch) | |
| tree | 6bd542dbfcc2516d98d462710176c026c10c667e | |
| parent | a5ec28641e7b3eee7f4ea5a39fb9e3a30c086c79 (diff) | |
fix UserModules.clear()
previously cleared the entire cache to {}, now only clears each value
in it.
| -rwxr-xr-x | py3status/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/py3status/__init__.py b/py3status/__init__.py index d54dedf..c683c76 100755 --- a/py3status/__init__.py +++ b/py3status/__init__.py @@ -355,7 +355,8 @@ class UserModules(Thread): """ clear user cache """ - self.cache = {} + for k in self.cache.keys(): + self.cache[k] = {} def run(self): """ |
