From aefce8e6dca8a0ae784468a5e1a4ba01f1471380 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Sat, 17 Jun 2017 23:48:58 +0700 Subject: [PATCH] [utils] Use compat_shlex_quote in shell_quote --- youtube_dl/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 1973bd4836..39860e9d15 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -22,7 +22,6 @@ import math import operator import os -import pipes import platform import random import re @@ -1535,7 +1534,7 @@ def shell_quote(args): if isinstance(a, bytes): # We may get a filename encoded with 'encodeFilename' a = a.decode(encoding) - quoted_args.append(pipes.quote(a)) + quoted_args.append(compat_shlex_quote(a)) return ' '.join(quoted_args)