summary refs log tree commit diff
path: root/synapse/push
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2017-10-05 13:08:02 +0100
committerDavid Baker <dave@matrix.org>2017-10-05 13:08:02 +0100
commite433393c4fded875cc38b09b02b453b7a014a9af (patch)
tree7ba0c67c14b8ecb96144cee97ecff533b8c39db8 /synapse/push
parentThey're called rooms (diff)
downloadsynapse-e433393c4fded875cc38b09b02b453b7a014a9af.tar.xz
pep8
Diffstat (limited to 'synapse/push')
-rw-r--r--synapse/push/push_rule_evaluator.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/push/push_rule_evaluator.py b/synapse/push/push_rule_evaluator.py
index 9cf3f9c632..a91dc0ee08 100644
--- a/synapse/push/push_rule_evaluator.py
+++ b/synapse/push/push_rule_evaluator.py
@@ -32,9 +32,11 @@ INEQUALITY_EXPR = re.compile("^([=<>]*)([0-9]*)$")
 def _room_member_count(ev, condition, room_member_count):
     return _test_ineq_condition(condition, room_member_count)
 
+
 def _sender_power_level(ev, condition, power_level):
     return _test_ineq_condition(condition, power_level)
 
+
 def _test_ineq_condition(condition, number):
     if 'is' not in condition:
         return False
@@ -60,6 +62,7 @@ def _test_ineq_condition(condition, number):
     else:
         return False
 
+
 def tweaks_for_actions(actions):
     tweaks = {}
     for a in actions: