diff options
author | Mark Haines <mark.haines@matrix.org> | 2016-03-08 11:45:50 +0000 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2016-03-08 11:45:50 +0000 |
commit | 7076082ae677b280c5b68df37b1fee2fc72752ff (patch) | |
tree | b7e1321f25c661033af27080404247b68f841bfb /synapse/push/__init__.py | |
parent | Merge pull request #631 from matrix-org/markjh/py3v1 (diff) | |
download | synapse-7076082ae677b280c5b68df37b1fee2fc72752ff.tar.xz |
Fix relative imports so they work in both py3 and py27
Diffstat (limited to 'synapse/push/__init__.py')
-rw-r--r-- | synapse/push/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/push/__init__.py b/synapse/push/__init__.py index 4c6c3b83a2..65ef1b68a3 100644 --- a/synapse/push/__init__.py +++ b/synapse/push/__init__.py @@ -21,7 +21,7 @@ from synapse.util.logcontext import LoggingContext from synapse.util.metrics import Measure import synapse.util.async -import push_rule_evaluator as push_rule_evaluator +from .push_rule_evaluator import evaluator_for_user_id import logging import random @@ -185,7 +185,7 @@ class Pusher(object): processed = False rule_evaluator = yield \ - push_rule_evaluator.evaluator_for_user_id( + evaluator_for_user_id( self.user_id, single_event['room_id'], self.store ) |