Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 58557ab

Browse files
tacaswellgreglucas
andauthored
MNT: use terser startswith check
Co-authored-by: Greg Lucas <[email protected]>
1 parent 67462de commit 58557ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

setupext.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,7 @@ def get_and_extract_tarball(urls, sha, dirname):
199199
'backend': config.get('rc_options', 'backend', fallback=None),
200200
'system_freetype': config.getboolean(
201201
'libs', 'system_freetype',
202-
fallback=(sys.platform.startswith('aix') or
203-
sys.platform.startswith('os400'))),
202+
fallback=sys.platform.startswith(('aix', 'os400')),
204203
'system_qhull': config.getboolean(
205204
'libs', 'system_qhull', fallback=sys.platform.startswith('os400')),
206205
}

0 commit comments

Comments
 (0)