summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Executor.py
diff options
context:
space:
mode:
authorDaniel Holth <dholth@fastmail.fm>2016-06-06 00:23:12 (GMT)
committerDaniel Holth <dholth@fastmail.fm>2016-06-06 00:23:12 (GMT)
commite4b799e8dc348159c5f2d70bdf49819c4d8270bc (patch)
treef8cd8e050e2aa4ccd886ab7a05cceb5e20c6a0f6 /src/engine/SCons/Executor.py
parentaa5a0468340338cc3423a06d6d55e1b52a713bc5 (diff)
downloadSCons-e4b799e8dc348159c5f2d70bdf49819c4d8270bc.zip
SCons-e4b799e8dc348159c5f2d70bdf49819c4d8270bc.tar.gz
SCons-e4b799e8dc348159c5f2d70bdf49819c4d8270bc.tar.bz2
avoid using __slots__ on Node and Executor (but only on PyPy)
Diffstat (limited to 'src/engine/SCons/Executor.py')
-rw-r--r--src/engine/SCons/Executor.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/SCons/Executor.py b/src/engine/SCons/Executor.py
index 7107fde..dd5088d 100644
--- a/src/engine/SCons/Executor.py
+++ b/src/engine/SCons/Executor.py
@@ -35,7 +35,7 @@ import SCons.Debug
from SCons.Debug import logInstanceCreation
import SCons.Errors
import SCons.Memoize
-
+from SCons.compat import with_metaclass, NoSlotsPyPy
class Batch(object):
"""Remembers exact association between targets
@@ -154,7 +154,7 @@ _execute_str_map = {0 : execute_null_str,
1 : execute_actions_str}
-class Executor(object):
+class Executor(object, with_metaclass(NoSlotsPyPy)):
"""A class for controlling instances of executing an action.
This largely exists to hold a single association of an action,
@@ -580,7 +580,7 @@ def get_NullEnvironment():
nullenv = NullEnvironment()
return nullenv
-class Null(object):
+class Null(object, with_metaclass(NoSlotsPyPy)):
"""A null Executor, with a null build Environment, that does
nothing when the rest of the methods call it.