2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-14 12:42:11 +00:00

Use local sorted() function to support Python < 2.4.

[SVN r44165]
This commit is contained in:
Rene Rivera
2008-04-11 05:34:00 +00:00
parent a70059725f
commit 7e238d9b7c

View File

@@ -668,8 +668,11 @@ class Tester(TestCmd.TestCmd):
if exact:
matched = fnmatch.fnmatch(actual,content)
else:
actual_ = map(lambda x: sorted(x.split()),actual.splitlines())
content_ = map(lambda x: sorted(x.split()),content.splitlines())
def sorted_(x):
x.sort()
return x
actual_ = map(lambda x: sorted_(x.split()),actual.splitlines())
content_ = map(lambda x: sorted_(x.split()),content.splitlines())
if len(actual_) == len(content_):
matched = map(
lambda x,y: map(lambda n,p: fnmatch.fnmatch(n,p),x,y),