summaryrefslogtreecommitdiffstats
path: root/test/Glob/Repository.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/Glob/Repository.py')
-rw-r--r--test/Glob/Repository.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/Glob/Repository.py b/test/Glob/Repository.py
index 5783443..0a2e326 100644
--- a/test/Glob/Repository.py
+++ b/test/Glob/Repository.py
@@ -75,9 +75,7 @@ test.write(['repository', 'src', 'SConscript'], """
Import("env")
env.Build('xxx.out', Glob('x*.in'))
env.Build('yyy.out', Glob('yy?.in'))
-zzz_in = Glob('*/zzz.in')
-zzz_in.sort(lambda a,b: cmp(a.abspath, b.abspath))
-env.Build('zzz.out', zzz_in)
+env.Build('zzz.out', sorted(Glob('*/zzz.in'), key=lambda t: t.abspath))
""")
test.write(['repository', 'src', 'xxx.in'], "repository/src/xxx.in\n")