Skip to content

Commit

Permalink
Remove imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ubmarco committed Nov 1, 2023
1 parent 9d82259 commit 73938c0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sphinx/builders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import inspect
import json
import pickle
import re
import time
from os import path
from typing import TYPE_CHECKING, Any
Expand Down Expand Up @@ -491,7 +490,6 @@ def merge(docs: list[str], otherenv: Environment) -> None:
result = results[idx]
merge([docname], result)
insights = pool.get_insights()
import json
print(json.dumps(insights, indent=2))

Check failure on line 493 in sphinx/builders/__init__.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (T201)

sphinx/builders/__init__.py:493:13: T201 `print` found
# print(insights)
# tasks = ParallelTasks(nproc)
Expand Down Expand Up @@ -664,7 +662,7 @@ def on_chunk_done(args: list[tuple[str, NoneType]], result: NoneType) -> None:
logger.info(f'{measure_1}: {self.runtime[measure_1]}')

Check failure on line 662 in sphinx/builders/__init__.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (G004)

sphinx/builders/__init__.py:662:25: G004 Logging statement uses f-string
logger.info(f'{measure_2}: {self.runtime[measure_2]}')

with WorkerPool(n_jobs=nproc, start_method='fork', use_dill=True, pass_worker_id=True, enable_insights=True) as pool:
with WorkerPool(n_jobs=nproc, start_method='fork', use_dill=False, pass_worker_id=True, enable_insights=True) as pool:
# args = []
# for docname in docnames:
# doctree = self.env.get_and_resolve_doctree(docname, self)
Expand Down

0 comments on commit 73938c0

Please sign in to comment.