diff options
| author | Steven Knight <knight@baldmt.com> | 2008-10-11 13:32:37 (GMT) |
|---|---|---|
| committer | Steven Knight <knight@baldmt.com> | 2008-10-11 13:32:37 (GMT) |
| commit | 95792a5c83ee9cc31b24beec4e49e255bcc6f0fd (patch) | |
| tree | 823a1ea3bcf61ffd77a877cdde5d933dcf3e6a2f /src/engine | |
| parent | cc283be5b5ff852b39116b55232567db4b2b7922 (diff) | |
| download | SCons-95792a5c83ee9cc31b24beec4e49e255bcc6f0fd.zip SCons-95792a5c83ee9cc31b24beec4e49e255bcc6f0fd.tar.gz SCons-95792a5c83ee9cc31b24beec4e49e255bcc6f0fd.tar.bz2 | |
Fix our SCons.Util.CLVar implementation (__add__() and __radd__()
methods) so env.{Ap,Pre}pend() work under Python 2.6 when appending
strings to $*FLAGS variables.
Diffstat (limited to 'src/engine')
| -rw-r--r-- | src/engine/SCons/Util.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/engine/SCons/Util.py b/src/engine/SCons/Util.py index 7ea3673..641db9c 100644 --- a/src/engine/SCons/Util.py +++ b/src/engine/SCons/Util.py @@ -1022,6 +1022,10 @@ class CLVar(UserList): """ def __init__(self, seq = []): UserList.__init__(self, Split(seq)) + def __add__(self, other): + 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): |
