diff options
author | Matthew Hodgson <matthew@matrix.org> | 2018-03-14 00:07:47 +0000 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2018-03-14 00:07:47 +0000 |
commit | 9f77001e2747c36046e136c5d3c706c0aef54b15 (patch) | |
tree | d1737f7c04df702a41b63236aac596ecffa4029e /synapse/storage | |
parent | add copyright to nudge CI (diff) | |
download | synapse-9f77001e2747c36046e136c5d3c706c0aef54b15.tar.xz |
pep8
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/state.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py index 9c9994c073..55159e64d0 100644 --- a/synapse/storage/state.py +++ b/synapse/storage/state.py @@ -257,7 +257,7 @@ class StateGroupWorkerStore(SQLBaseStore): if include_other_types: # XXX: check whether this slows postgres down like a list of # ORs does too? - unique_types = set([ t for (t, _) in types ]) + unique_types = set([t for (t, _) in types]) clause_to_args.append( ( "AND type <> ? " * len(unique_types), @@ -294,7 +294,7 @@ class StateGroupWorkerStore(SQLBaseStore): where_args.extend([typ[0], typ[1]]) if include_other_types: - unique_types = set([ t for (t, _) in types ]) + unique_types = set([t for (t, _) in types]) where_clauses.append( "(" + " AND ".join(["type <> ?"] * len(unique_types)) + ")" ) |