summaryrefslogtreecommitdiff
path: root/mpv.py
diff options
context:
space:
mode:
Diffstat (limited to 'mpv.py')
-rw-r--r--mpv.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/mpv.py b/mpv.py
index 7a7c1a2..d76f9a3 100644
--- a/mpv.py
+++ b/mpv.py
@@ -766,8 +766,7 @@ class MPV(object):
``` """
self._register_message_handler_internal(target, handler)
- def _register_script_message_handler_internal(self, target, handler):
- handler.mpv_message_targets = getattr(handler, 'mpv_script_message_targets', []) + [target]
+ def _register_message_handler_internal(self, target, handler):
self._message_handlers[target] = handler
def unregister_message_handler(self, target_or_handler):