From: Sergey M․ Date: Sat, 5 Sep 2015 16:21:06 +0000 (+0600) Subject: [compat] Fix python version check for compat_shlex_split X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=8df5ae15d1f010bd96a8c51087718c5f41d3d90f;p=youtube-dl [compat] Fix python version check for compat_shlex_split --- 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 @@ except ImportError: # Python < 3.3 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