From 8df5ae15d1f010bd96a8c51087718c5f41d3d90f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Sat, 5 Sep 2015 22:21:06 +0600 Subject: [PATCH] [compat] Fix python version check for compat_shlex_split --- youtube_dl/compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/compat.py b/youtube_dl/compat.py index 9b77316f9..e32bef279 100644 --- a/youtube_dl/compat.py +++ b/youtube_dl/compat.py @@ -228,7 +228,7 @@ def shlex_quote(s): return "'" + s.replace("'", "'\"'\"'") + "'" -if sys.version_info > (2, 7, 2): +if sys.version_info >= (2, 7, 3): compat_shlex_split = shlex.split else: # Working around shlex issue with unicode strings on some python 2