From d395bd510fa4f4376dc5237ab2f8d190a920d35d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 19 Feb 2023 16:05:49 +0100 Subject: Adding upstream version 2.1.1. Signed-off-by: Daniel Baumann --- deluge/plugins/Execute/deluge_execute/core.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'deluge/plugins/Execute/deluge_execute/core.py') diff --git a/deluge/plugins/Execute/deluge_execute/core.py b/deluge/plugins/Execute/deluge_execute/core.py index 9dcd97a..6d33e54 100644 --- a/deluge/plugins/Execute/deluge_execute/core.py +++ b/deluge/plugins/Execute/deluge_execute/core.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2009 Andrew Resch # @@ -7,8 +6,6 @@ # See LICENSE for more details. # -from __future__ import unicode_literals - import hashlib import logging import os @@ -135,7 +132,7 @@ class Core(CorePluginBase): ] if windows_check(): # Escape ampersand on windows (see #2784) - cmd_args = [cmd_arg.replace('&', '^^^&') for cmd_arg in cmd_args] + cmd_args = [cmd_arg.replace(b'&', b'^^^&') for cmd_arg in cmd_args] if os.path.isfile(command) and os.access(command, os.X_OK): log.debug('Running %s with args: %s', command, cmd_args) -- cgit v1.2.3