Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanking13 committed Jun 25, 2024
1 parent ba8f64c commit ae46033
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyodide_build/vendor/loky.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ def cpu_count(only_physical_cores=False):
f"following reason:\n{exception}\n"
"Returning the number of logical cores instead. You can "
"silence this warning by setting LOKY_MAX_CPU_COUNT to "
"the number of cores you want to use."
"the number of cores you want to use.",
stacklevel=2,
)
traceback.print_tb(exception.__traceback__)

Expand Down Expand Up @@ -121,7 +122,7 @@ def _cpu_count_cgroup(os_cpu_count):
return math.ceil(cpu_quota_us / cpu_period_us)
else: # pragma: no cover
# Setting a negative cpu_quota_us value is a valid way to disable
# cgroup CPU bandwith limits
# cgroup CPU bandwidth limits
return os_cpu_count


Expand Down

0 comments on commit ae46033

Please sign in to comment.