diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-10-17 18:56:10 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-10-17 18:56:10 +0300 |
commit | 458ce5e9a8bed9f72a3cdd7b6006033ddfd4ee05 (patch) | |
tree | 4cd8ef8a16851579634a49456e8f497f1a4a6882 | |
parent | 7541269be30f3d474bcee819c6f9e12373101a26 (diff) | |
download | ttystatus-458ce5e9a8bed9f72a3cdd7b6006033ddfd4ee05.tar.gz |
If not variables declared, assume unknown interest
-rw-r--r-- | ttystatus/fmt.py | 2 |
1 files changed, 1 insertions, 1 deletions
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('%%'): |