Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64072 - trunk/tools/build/v2/build
From: ghost_at_[hidden]
Date: 2010-07-16 08:09:43


Author: vladimir_prus
Date: 2010-07-16 08:09:41 EDT (Fri, 16 Jul 2010)
New Revision: 64072
URL: http://svn.boost.org/trac/boost/changeset/64072

Log:
Raise Exception, not string (which is not allowed in modern Python)

Text files modified:
   trunk/tools/build/v2/build/engine.py | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/tools/build/v2/build/engine.py
==============================================================================
--- trunk/tools/build/v2/build/engine.py (original)
+++ trunk/tools/build/v2/build/engine.py 2010-07-16 08:09:41 EDT (Fri, 16 Jul 2010)
@@ -144,7 +144,7 @@
     def do_set_update_action (self, action_name, targets, sources, property_set):
         action = self.actions.get(action_name)
         if not action:
- raise "No action %s was registered" % action_name
+ raise Exception("No action %s was registered" % action_name)
         action(targets, sources, property_set)
 
     def do_set_target_variable (self, target, variable, value, append):


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