From: stevenknight Date: Tue, 24 Nov 2009 01:58:03 +0000 (+0000) Subject: Fix incorrectly inverted condition in test for non-TimeSCons entries. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=499d9a4b836bf9f802ef0daea2dc85941133cdcf;p=scons.git Fix incorrectly inverted condition in test for non-TimeSCons entries. git-svn-id: http://scons.tigris.org/svn/scons/trunk@4474 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/QMTest/TestSCons.py b/QMTest/TestSCons.py index cf8e3576..ab014a9f 100644 --- a/QMTest/TestSCons.py +++ b/QMTest/TestSCons.py @@ -1073,9 +1073,9 @@ class TimeSCons(TestSCons): # TODO(1.5) #dirs = [ d for d in dirs if not d.startswith('TimeSCons-') ] #files = [ f for f in files if not f.startswith('TimeSCons-') ] - timescons_entries = lambda s: s.startswith('TimeSCons-') - dirs = filter(timescons_entries, dirs) - files = filter(timescons_entries, files) + not_timescons_entries = lambda s: not s.startswith('TimeSCons-') + dirs = filter(not_timescons_entries, dirs) + files = filter(not_timescons_entries, files) for dirname in dirs: source = os.path.join(root, dirname) destination = source.replace(source_dir, dest_dir)