diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-03-23 15:24:10 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-03-23 15:24:10 +0200 |
commit | 6d48546dc175a707493c1c48683567b4df491798 (patch) | |
tree | 4bbc123fa9e5216afea0c8faef856110ae2b881b | |
parent | d866fa5337e5ad39bd0e37d4ebe1fcd2d12b98fb (diff) | |
download | effitool-master.tar.gz |
-rwxr-xr-x | effitool | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -465,10 +465,11 @@ class Tool: session = self.get_session(args) members = session.get_all_members() - matches = {} - for rid, m in members.items(): - if all(c.matches(m) for c in conds): - matches[rid] = m + matches = { + rid: m + for rid, m in members.items() + if all(c.matches(m) for c in conds) + } self._format_json(matches, sys.stdout) def _format_json(self, obj, output): |