From c9cbccb27b9fd3d1e8e56b7adcc22325dbdac76b Mon Sep 17 00:00:00 2001 From: Ed Kellett Date: Mon, 29 Apr 2013 14:23:52 +0100 Subject: fix UserModules.clear() previously cleared the entire cache to {}, now only clears each value in it. --- py3status/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'py3status') 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): """ -- cgit v1.3