From 73029303d6723c81353b61b930ba8731e0e04dc0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 9 Jun 2018 07:05:03 +0530 Subject: [PATCH] Dont use a set literal in the installer since there are apparently people still running linux installations with python 2.6 --- setup/linux-installer.py | 2 +- setup/linux-installer.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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