summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xeffitool9
1 files changed, 5 insertions, 4 deletions
diff --git a/effitool b/effitool
index 048e3ec..7608746 100755
--- a/effitool
+++ b/effitool
@@ -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):