summaryrefslogtreecommitdiffstats
path: root/SCons/Job.py
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2020-05-23 13:46:18 (GMT)
committerMats Wichmann <mats@linux.com>2020-05-24 15:27:22 (GMT)
commit5b288f1b67a85bcccc533f101311b1c2c7f2b6eb (patch)
treeadca21d96e435443cbc90985f53f67b85530a6c2 /SCons/Job.py
parent0e76754e652e974f82f975d2cf526d5f7705baab (diff)
downloadSCons-5b288f1b67a85bcccc533f101311b1c2c7f2b6eb.zip
SCons-5b288f1b67a85bcccc533f101311b1c2c7f2b6eb.tar.gz
SCons-5b288f1b67a85bcccc533f101311b1c2c7f2b6eb.tar.bz2
classes no longer explicitly inherit from object
In Python3 this is the default. Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'SCons/Job.py')
-rw-r--r--SCons/Job.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/SCons/Job.py b/SCons/Job.py
index d70125c..4e2f68c 100644
--- a/SCons/Job.py
+++ b/SCons/Job.py
@@ -52,7 +52,7 @@ default_stack_size = 256
interrupt_msg = 'Build interrupted.'
-class InterruptState(object):
+class InterruptState:
def __init__(self):
self.interrupted = False
@@ -63,7 +63,7 @@ class InterruptState(object):
return self.interrupted
-class Jobs(object):
+class Jobs:
"""An instance of this class initializes N jobs, and provides
methods for starting, stopping, and waiting on all N jobs.
"""
@@ -163,7 +163,7 @@ class Jobs(object):
except AttributeError:
pass
-class Serial(object):
+class Serial:
"""This class is used to execute tasks in series, and is more efficient
than Parallel, but is only appropriate for non-parallel builds. Only
one instance of this class should be in existence at a time.
@@ -264,7 +264,7 @@ else:
self.resultsQueue.put((task, ok))
- class ThreadPool(object):
+ class ThreadPool:
"""This class is responsible for spawning and managing worker threads."""
def __init__(self, num, stack_size, interrupted):
@@ -338,7 +338,7 @@ else:
worker.join(1.0)
self.workers = []
- class Parallel(object):
+ class Parallel:
"""This class is used to execute tasks in parallel, and is somewhat
less efficient than Serial, but is appropriate for parallel builds.