diff options
author | Steven Knight <knight@baldmt.com> | 2008-10-12 04:28:06 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2008-10-12 04:28:06 (GMT) |
commit | 81e175baacb21e1a05d309c1a80af5d5e6f67e0f (patch) | |
tree | 6350651f3c3f3d5907e8b15035415e14a0d41600 | |
parent | afe0fe2f4df5df3c4e4edc7656f8daaa973f37b1 (diff) | |
download | SCons-81e175baacb21e1a05d309c1a80af5d5e6f67e0f.zip SCons-81e175baacb21e1a05d309c1a80af5d5e6f67e0f.tar.gz SCons-81e175baacb21e1a05d309c1a80af5d5e6f67e0f.tar.bz2 |
Python 2.6 portability: add __{add,radd}__() methods to the CLVar
class used for testing.
-rw-r--r-- | src/engine/SCons/EnvironmentTests.py | 4 |
1 files changed, 4 insertions, 0 deletions
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)) |