Use os.sched_getaffinity
instead of os.cpu_count
where possible
#2160
+14
−6
os.sched_getaffinity
instead of os.cpu_count
where possible
#2160