8000 BUG: missing default None values in getattr(...) · pitrou/numpy@6ceb0e6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6ceb0e6

Browse files
committed
BUG: missing default None values in getattr(...)
1 parent 68ffaec commit 6ceb0e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

numpy/distutils/misc_util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ def get_num_build_jobs():
8787
return envjobs
8888

8989
# any of these three may have the job set, take the largest
90-
cmdattr = (getattr(dist.get_command_obj('build'), 'jobs'),
91-
getattr(dist.get_command_obj('build_ext'), 'jobs'),
92-
getattr(dist.get_command_obj('build_clib'), 'jobs'))
90+
cmdattr = (getattr(dist.get_command_obj('build'), 'jobs', None),
91+
getattr(dist.get_command_obj('build_ext'), 'jobs', None),
92+
getattr(dist.get_command_obj('build_clib'), 'jobs', None))
9393
if all(x is None for x in cmdattr):
9494
return envjobs
9595
else:

0 commit comments

Comments
 (0)
0