diff options
author | Dan McGee <dan@archlinux.org> | 2012-11-16 16:37:31 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-11-16 16:37:53 -0600 |
commit | 9e9157d0a8cbf9ea076231e438fb30f58bff8e29 (patch) | |
tree | 5c9a9711003d6eb4e5396c1c730a912bbbfc2204 /devel/management/commands/import_signatures.py | |
parent | 6dd4d54bb0adbbb0f8c2b1beaa92b7a58971cf88 (diff) |
Use python set comprehension syntax supported in 2.7
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/management/commands/import_signatures.py')
-rw-r--r-- | devel/management/commands/import_signatures.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/devel/management/commands/import_signatures.py b/devel/management/commands/import_signatures.py index ce1aba90..da1397ca 100644 --- a/devel/management/commands/import_signatures.py +++ b/devel/management/commands/import_signatures.py @@ -98,8 +98,8 @@ def import_signatures(keyring): # now prune the data down to what we actually want. # prune edges not in nodes, remove duplicates, and self-sigs - pruned_edges = set(edge for edge in edges - if edge.signer in nodes and edge.signer != edge.signee) + pruned_edges = {edge for edge in edges + if edge.signer in nodes and edge.signer != edge.signee} logger.info("creating or finding %d signatures", len(pruned_edges)) created_ct = updated_ct = 0 |