diff options
author | Steven Knight <knight@baldmt.com> | 2010-04-07 15:29:39 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2010-04-07 15:29:39 (GMT) |
commit | ca29ee5e30d4d4ad60d51f95e4ac61eee7e5cd42 (patch) | |
tree | eb60dd8251a7fd064aa255309df2056dbf49a258 /src/engine/SCons/Executor.py | |
parent | 32d7c315d62846ea8febadcbb2c60cf9e3382cbf (diff) | |
download | SCons-ca29ee5e30d4d4ad60d51f95e4ac61eee7e5cd42.zip SCons-ca29ee5e30d4d4ad60d51f95e4ac61eee7e5cd42.tar.gz SCons-ca29ee5e30d4d4ad60d51f95e4ac61eee7e5cd42.tar.bz2 |
Issue 2334: Use compatibility versions of collections.User{Dict,List,String}
instead of the deprecated User{Dict,List,String} modules. The two test
scripts that use User{List,String} fall back on ImportError by hand.
Diffstat (limited to 'src/engine/SCons/Executor.py')
-rw-r--r-- | src/engine/SCons/Executor.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/SCons/Executor.py b/src/engine/SCons/Executor.py index aaf71b8..8f9b917 100644 --- a/src/engine/SCons/Executor.py +++ b/src/engine/SCons/Executor.py @@ -31,7 +31,7 @@ from __future__ import generators ### KEEP FOR COMPATIBILITY FIXERS __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" -import UserList +import collections from SCons.Debug import logInstanceCreation import SCons.Errors @@ -47,15 +47,15 @@ class Batch: -class TSList(UserList.UserList): +class TSList(collections.UserList): """A class that implements $TARGETS or $SOURCES expansions by wrapping an executor Method. This class is used in the Executor.lvars() to delay creation of NodeList objects until they're needed. - Note that we subclass UserList.UserList purely so that the + Note that we subclass collections.UserList purely so that the is_Sequence() function will identify an object of this class as a list during variable expansion. We're not really using any - UserList.UserList methods in practice. + collections.UserList methods in practice. """ def __init__(self, func): self.func = func |