diff options
author | Daniel Holth <dholth@fastmail.fm> | 2016-06-06 00:23:12 (GMT) |
---|---|---|
committer | Daniel Holth <dholth@fastmail.fm> | 2016-06-06 00:23:12 (GMT) |
commit | e4b799e8dc348159c5f2d70bdf49819c4d8270bc (patch) | |
tree | f8cd8e050e2aa4ccd886ab7a05cceb5e20c6a0f6 /src/engine/SCons/Executor.py | |
parent | aa5a0468340338cc3423a06d6d55e1b52a713bc5 (diff) | |
download | SCons-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.py | 6 |
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. |