From 458ce5e9a8bed9f72a3cdd7b6006033ddfd4ee05 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 17 Oct 2015 18:56:10 +0300 Subject: If not variables declared, assume unknown interest --- ttystatus/fmt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ttystatus/fmt.py b/ttystatus/fmt.py index ec5b18f..e0328fb 100644 --- a/ttystatus/fmt.py +++ b/ttystatus/fmt.py @@ -54,7 +54,7 @@ def parse(fmt): argnames = m.group('args').split(',') argnames = [x for x in argnames if x] widget = klass(*argnames) - widget.interested_in = argnames + widget.interested_in = argnames or None result.append(widget) fmt = fmt[m.end():] elif fmt.startswith('%%'): -- cgit v1.2.1