Boost logo

Boost-Commit :

From: grafikrobot_at_[hidden]
Date: 2008-05-08 18:01:15


Author: grafik
Date: 2008-05-08 18:01:14 EDT (Thu, 08 May 2008)
New Revision: 45233
URL: http://svn.boost.org/trac/boost/changeset/45233

Log:
Work around differing option parsing assumptions between Python 2.3 and 2.5. The former assumes the arguments always include the program name, while the former assumes it doesn't.
Text files modified:
   trunk/tools/regression/src/process_jam_log.py | 5 ++++-
   1 files changed, 4 insertions(+), 1 deletions(-)

Modified: trunk/tools/regression/src/process_jam_log.py
==============================================================================
--- trunk/tools/regression/src/process_jam_log.py (original)
+++ trunk/tools/regression/src/process_jam_log.py 2008-05-08 18:01:14 EDT (Thu, 08 May 2008)
@@ -76,7 +76,10 @@
         #~ print self.target
     
     def add_log(self):
- bjam_log = xml.dom.minidom.parse(self.input[0])
+ if self.input[0]:
+ bjam_log = xml.dom.minidom.parse(self.input[0])
+ else:
+ bjam_log = xml.dom.minidom.parse(self.input[1])
         self.x(bjam_log.documentElement)
     
     def gen_output(self):


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