summaryrefslogtreecommitdiffstats
path: root/py3status
diff options
context:
space:
mode:
authorEd Kellett <edk141@gmail.com>2013-04-29 14:23:52 +0100
committerEd Kellett <edk141@gmail.com>2013-04-29 14:23:52 +0100
commitc9cbccb27b9fd3d1e8e56b7adcc22325dbdac76b (patch)
tree6bd542dbfcc2516d98d462710176c026c10c667e /py3status
parenta5ec28641e7b3eee7f4ea5a39fb9e3a30c086c79 (diff)
fix UserModules.clear()
previously cleared the entire cache to {}, now only clears each value in it.
Diffstat (limited to 'py3status')
-rwxr-xr-xpy3status/__init__.py3
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):
"""