From a3ffab8de1af5d4190600093a33d62b974f2507a Mon Sep 17 00:00:00 2001 From: William Deegan Date: Tue, 21 Nov 2017 18:43:37 -0500 Subject: Remove obsolete __coerce__ methods on CLVar. Not used by new style objects --- src/engine/SCons/EnvironmentTests.py | 4 ---- src/engine/SCons/Util.py | 2 -- 2 files changed, 6 deletions(-) diff --git a/src/engine/SCons/EnvironmentTests.py b/src/engine/SCons/EnvironmentTests.py index 229858f..7cd6015 100644 --- a/src/engine/SCons/EnvironmentTests.py +++ b/src/engine/SCons/EnvironmentTests.py @@ -139,10 +139,6 @@ class CLVar(UL): return UL.__add__(self, CLVar(other)) def __radd__(self, other): return UL.__radd__(self, CLVar(other)) - def __coerce__(self, other): - return (self, CLVar(other)) - - class DummyNode(object): def __init__(self, name): diff --git a/src/engine/SCons/Util.py b/src/engine/SCons/Util.py index 7ed9706..558441d 100644 --- a/src/engine/SCons/Util.py +++ b/src/engine/SCons/Util.py @@ -1029,8 +1029,6 @@ class CLVar(UserList): return UserList.__add__(self, CLVar(other)) def __radd__(self, other): return UserList.__radd__(self, CLVar(other)) - def __coerce__(self, other): - return (self, CLVar(other)) def __str__(self): return ' '.join(self.data) -- cgit v0.12