summaryrefslogtreecommitdiffstats
path: root/test/Glob/subdir.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/Glob/subdir.py')
-rw-r--r--test/Glob/subdir.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/Glob/subdir.py b/test/Glob/subdir.py
index 0255ff8..6fc00f6 100644
--- a/test/Glob/subdir.py
+++ b/test/Glob/subdir.py
@@ -46,9 +46,7 @@ def concatenate(target, source, env):
env['BUILDERS']['Concatenate'] = Builder(action=concatenate)
-f_in = Glob('subdir/*.in')
-f_in.sort(lambda a,b: cmp(a.name, b.name))
-env.Concatenate('f.out', f_in)
+env.Concatenate('f.out', sorted(Glob('subdir/*.in'), key=lambda t: t.name))
""")
test.write(['subdir', 'file.in'], "subdir/file.in\n")