summaryrefslogtreecommitdiff
path: root/SCons/EnvironmentTests.py
diff options
context:
space:
mode:
Diffstat (limited to 'SCons/EnvironmentTests.py')
-rw-r--r--SCons/EnvironmentTests.py14
1 files changed, 2 insertions, 12 deletions
diff --git a/SCons/EnvironmentTests.py b/SCons/EnvironmentTests.py
index c2d50878f..88577ba4e 100644
--- a/SCons/EnvironmentTests.py
+++ b/SCons/EnvironmentTests.py
@@ -32,6 +32,7 @@ from collections import UserDict as UD, UserList as UL
import TestCmd
+import SCons.Warnings
from SCons.Environment import (
Environment,
NoSubstitutionProxy,
@@ -39,7 +40,7 @@ from SCons.Environment import (
SubstitutionEnvironment,
is_valid_construction_var,
)
-import SCons.Warnings
+from SCons.Util import CLVar
def diff_env(env1, env2):
@@ -131,17 +132,6 @@ class Scanner:
return self.name
-
-class CLVar(UL):
- def __init__(self, seq):
- if isinstance(seq, str):
- seq = seq.split()
- UL.__init__(self, seq)
- def __add__(self, other):
- return UL.__add__(self, CLVar(other))
- def __radd__(self, other):
- return UL.__radd__(self, CLVar(other))
-
class DummyNode:
def __init__(self, name):
self.name = name