From 1cb75bd05318beda184bdce046df249dca6de566 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Fri, 29 Jan 2016 18:47:12 -0800 Subject: [PATCH] Remove unnecessary quoting of script arguments --- plexpy/notification_handler.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index fab5803d..cea0b601 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -586,10 +586,6 @@ def build_notify_text(session=None, timeline=None, state=None): # Default scripts args script_args = [] - # Regex to match {param} but not "{param}" - params_to_quote = re.compile(r'(?"', script_args_text) - if script_args_text: try: script_args = [unicode(arg).format(**available_params) for arg in script_args_text.split()] @@ -805,10 +801,6 @@ def build_server_notify_text(state=None): # Default scripts args script_args = [] - # Regex to match {param} but not "{param}" - params_to_quote = re.compile(r'(?"', script_args_text) - if script_args_text: try: script_args = [unicode(arg).format(**available_params) for arg in script_args_text.split()]