Browse Source

[compat] Fix python version check for compat_shlex_split

master
Sergey M․ 9 years ago
parent
commit
8df5ae15d1
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/compat.py

2
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

Loading…
Cancel
Save