summary refs log tree commit diff
path: root/synapse/rest/client/v1/push_rule.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-01-28 14:39:03 +0000
committerDavid Baker <dave@matrix.org>2015-01-28 14:39:03 +0000
commit289a2498743caae7e0c3366a1c1f7855d48d9a8e (patch)
tree0d6432dd46cc898fc00963fa09ae4294d656e45b /synapse/rest/client/v1/push_rule.py
parentUnnecessary newline. (diff)
downloadsynapse-289a2498743caae7e0c3366a1c1f7855d48d9a8e.tar.xz
Unnecessary newlines.
Diffstat (limited to 'synapse/rest/client/v1/push_rule.py')
-rw-r--r--synapse/rest/client/v1/push_rule.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/synapse/rest/client/v1/push_rule.py b/synapse/rest/client/v1/push_rule.py
index 550554c18c..dbcac3d4e1 100644
--- a/synapse/rest/client/v1/push_rule.py
+++ b/synapse/rest/client/v1/push_rule.py
@@ -295,7 +295,6 @@ def _add_empty_priority_class_arrays(d):
         d[pc] = []
     return d
 
-
 def _instance_handle_from_conditions(conditions):
     """
     Given a list of conditions, return the instance handle of the
@@ -326,7 +325,6 @@ def _filter_ruleset_with_path(ruleset, path):
             return r
     raise NotFoundError
 
-
 def _priority_class_from_spec(spec):
     if spec['template'] not in PushRuleRestServlet.PRIORITY_CLASS_MAP.keys():
         raise InvalidRuleException("Unknown template: %s" % (spec['kind']))
@@ -337,7 +335,6 @@ def _priority_class_from_spec(spec):
 
     return pc
 
-
 def _priority_class_to_template_name(pc):
     if pc > PushRuleRestServlet.PRIORITY_CLASS_MAP['override']:
         # per-device
@@ -346,7 +343,6 @@ def _priority_class_to_template_name(pc):
     else:
         return PushRuleRestServlet.PRIORITY_CLASS_INVERSE_MAP[pc]
 
-
 def _rule_to_template(rule):
     template_name = _priority_class_to_template_name(rule['priority_class'])
     if template_name in ['override', 'underride']:
@@ -363,7 +359,6 @@ def _rule_to_template(rule):
         ret["pattern"] = thecond["pattern"]
         return ret
 
-
 def _strip_device_condition(rule):
     for i,c in enumerate(rule['conditions']):
         if c['kind'] == 'device':