diff --git a/setup/linux-installer.py b/setup/linux-installer.py index 30832fa56f..6d18e36059 100644 --- a/setup/linux-installer.py +++ b/setup/linux-installer.py @@ -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 diff --git a/setup/linux-installer.sh b/setup/linux-installer.sh index 2620e43113..557bf096c7 100644 --- a/setup/linux-installer.sh +++ b/setup/linux-installer.sh @@ -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