Skip to content

Commit f807729

Browse files
Avoid a potential NameError (#12789)
1 parent cb455dd commit f807729

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx/util/parallel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
logger = logging.getLogger(__name__)
2424

2525
# our parallel functionality only works for the forking Process
26-
parallel_available = multiprocessing and os.name == 'posix'
26+
parallel_available = HAS_MULTIPROCESSING and os.name == 'posix'
2727

2828

2929
class SerialTasks:

0 commit comments

Comments
 (0)