summaryrefslogtreecommitdiff
path: root/sphinx/util/parallel.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/util/parallel.py')
-rw-r--r--sphinx/util/parallel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/parallel.py b/sphinx/util/parallel.py
index 066e3c93a..95ebc1406 100644
--- a/sphinx/util/parallel.py
+++ b/sphinx/util/parallel.py
@@ -36,7 +36,7 @@ logger = logging.getLogger(__name__)
parallel_available = multiprocessing and (os.name == 'posix')
-class SerialTasks(object):
+class SerialTasks:
"""Has the same interface as ParallelTasks, but executes tasks directly."""
def __init__(self, nproc=1):
@@ -57,7 +57,7 @@ class SerialTasks(object):
pass
-class ParallelTasks(object):
+class ParallelTasks:
"""Executes *nproc* tasks in parallel after forking."""
def __init__(self, nproc):