1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[compat] Fix python version check for compat_shlex_split

This commit is contained in:
Sergey M․ 2015-09-05 22:21:06 +06:00
parent 12439dd5ec
commit 8df5ae15d1

View file

@ -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