diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2015-02-19 21:53:37 +0100 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2015-02-26 22:37:51 +0100 |
commit | 12dffe7c533ac9b595e80e376877fbd1cb79fb2c (patch) | |
tree | b4e2e62ea22a63751239691a0df9b3f8c063d913 /ext-plugins | |
parent | e9da6d5de02111b8ade2fb9b0d7c3e9cce2c9697 (diff) | |
download | clufter-12dffe7c533ac9b595e80e376877fbd1cb79fb2c.tar.gz clufter-12dffe7c533ac9b595e80e376877fbd1cb79fb2c.tar.xz clufter-12dffe7c533ac9b595e80e376877fbd1cb79fb2c.zip |
lib-general/formats/command: think of non-arg option
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'ext-plugins')
-rw-r--r-- | ext-plugins/lib-general/formats/command.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext-plugins/lib-general/formats/command.py b/ext-plugins/lib-general/formats/command.py index e9a0653..65145b9 100644 --- a/ext-plugins/lib-general/formats/command.py +++ b/ext-plugins/lib-general/formats/command.py @@ -65,7 +65,7 @@ class command(SimpleFormat): self.__class__.name )) ret = list(d.get('__cmd__', ())) - ret.extend((k, v) for k, vs in d.iteritems() for v in vs + ret.extend((k, v) for k, vs in d.iteritems() for v in (vs or ((), )) if k not in ('__cmd__', '__args__')) ret.extend(d.get('__args__', ())) else: |