Dont use a set literal in the installer since there are apparently people still running linux installations with python 2.6

This commit is contained in:
Kovid Goyal 2018-06-09 07:05:03 +05:30
parent 7879e35337
commit 73029303d6
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -755,7 +755,7 @@ def script_launch():
return os.path.expanduser(x)
def to_bool(x):
return x.lower() in {'y', 'yes', '1', 'true'}
return x.lower() in ('y', 'yes', '1', 'true')
type_map = {x: path for x in 'install_dir isolated bin_dir share_dir ignore_umask'.split()}
type_map['isolated'] = type_map['ignore_umask'] = to_bool

View File

@ -804,7 +804,7 @@ def script_launch():
return os.path.expanduser(x)
def to_bool(x):
return x.lower() in {'y', 'yes', '1', 'true'}
return x.lower() in ('y', 'yes', '1', 'true')
type_map = {x: path for x in 'install_dir isolated bin_dir share_dir ignore_umask'.split()}
type_map['isolated'] = type_map['ignore_umask'] = to_bool