From 7e238d9b7cfbb09406fd7f898a3578940dc4be82 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Fri, 11 Apr 2008 05:34:00 +0000 Subject: [PATCH] Use local sorted() function to support Python < 2.4. [SVN r44165] --- test/BoostBuild.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/BoostBuild.py b/test/BoostBuild.py index 88aa8a74c..7e133d4e8 100644 --- a/test/BoostBuild.py +++ b/test/BoostBuild.py @@ -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),