From 81e175baacb21e1a05d309c1a80af5d5e6f67e0f Mon Sep 17 00:00:00 2001 From: Steven Knight Date: Sun, 12 Oct 2008 04:28:06 +0000 Subject: Python 2.6 portability: add __{add,radd}__() methods to the CLVar class used for testing. --- src/engine/SCons/EnvironmentTests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/engine/SCons/EnvironmentTests.py b/src/engine/SCons/EnvironmentTests.py index 568f14d..62530ba 100644 --- a/src/engine/SCons/EnvironmentTests.py +++ b/src/engine/SCons/EnvironmentTests.py @@ -134,6 +134,10 @@ class CLVar(UserList.UserList): if type(seq) == type(''): seq = string.split(seq) UserList.UserList.__init__(self, seq) + def __add__(self, other): + return UserList.UserList.__add__(self, CLVar(other)) + def __radd__(self, other): + return UserList.UserList.__radd__(self, CLVar(other)) def __coerce__(self, other): return (self, CLVar(other)) -- cgit v0.12