mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
7879e35337
commit
73029303d6
@ -755,7 +755,7 @@ def script_launch():
|
|||||||
return os.path.expanduser(x)
|
return os.path.expanduser(x)
|
||||||
|
|
||||||
def to_bool(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 = {x: path for x in 'install_dir isolated bin_dir share_dir ignore_umask'.split()}
|
||||||
type_map['isolated'] = type_map['ignore_umask'] = to_bool
|
type_map['isolated'] = type_map['ignore_umask'] = to_bool
|
||||||
|
@ -804,7 +804,7 @@ def script_launch():
|
|||||||
return os.path.expanduser(x)
|
return os.path.expanduser(x)
|
||||||
|
|
||||||
def to_bool(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 = {x: path for x in 'install_dir isolated bin_dir share_dir ignore_umask'.split()}
|
||||||
type_map['isolated'] = type_map['ignore_umask'] = to_bool
|
type_map['isolated'] = type_map['ignore_umask'] = to_bool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user