|
Boost-Commit : |
From: grafikrobot_at_[hidden]
Date: 2008-04-11 01:34:01
Author: grafik
Date: 2008-04-11 01:34:00 EDT (Fri, 11 Apr 2008)
New Revision: 44165
URL: http://svn.boost.org/trac/boost/changeset/44165
Log:
Use local sorted() function to support Python < 2.4.
Text files modified:
trunk/tools/build/v2/test/BoostBuild.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
Modified: trunk/tools/build/v2/test/BoostBuild.py
==============================================================================
--- trunk/tools/build/v2/test/BoostBuild.py (original)
+++ trunk/tools/build/v2/test/BoostBuild.py 2008-04-11 01:34:00 EDT (Fri, 11 Apr 2008)
@@ -668,8 +668,11 @@
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),
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk