mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-07-19 20:07:08 -05:00
[compat] Fix python version check for compat_shlex_split
This commit is contained in:
@ -228,7 +228,7 @@ except ImportError: # Python < 3.3
|
|||||||
return "'" + s.replace("'", "'\"'\"'") + "'"
|
return "'" + s.replace("'", "'\"'\"'") + "'"
|
||||||
|
|
||||||
|
|
||||||
if sys.version_info > (2, 7, 2):
|
if sys.version_info >= (2, 7, 3):
|
||||||
compat_shlex_split = shlex.split
|
compat_shlex_split = shlex.split
|
||||||
else:
|
else:
|
||||||
# Working around shlex issue with unicode strings on some python 2
|
# Working around shlex issue with unicode strings on some python 2
|
||||||
|
Reference in New Issue
Block a user