This commit is contained in:
Kovid Goyal 2016-07-20 16:13:33 +05:30
parent 3466aaff4c
commit 37649fc9ed

View File

@ -79,12 +79,8 @@ def is_ext_allowed(ext):
only = ext.get('only', '') only = ext.get('only', '')
if only: if only:
only = only.split() only = only.split()
if iswindows and 'windows' not in only: q = 'windows' if iswindows else 'osx' if isosx else 'linux'
return False return q in only
if isosx and 'osx' not in only:
return False
if 'linux' not in only:
return False
return True return True
def parse_extension(ext): def parse_extension(ext):