Update of /cvsroot/boost/boost/tools/regression/xsl_reports
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27815

Modified Files:
        boost_wide_report.py 
Log Message:
Factor out rename into a function

Index: boost_wide_report.py
===================================================================
RCS file: 
/cvsroot/boost/boost/tools/regression/xsl_reports/boost_wide_report.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- boost_wide_report.py        7 May 2007 21:06:59 -0000       1.22
+++ boost_wide_report.py        8 May 2007 11:40:34 -0000       1.23
@@ -674,11 +674,11 @@
         for file in files:
             if file.find( "%20" ) > -1:
                 new_name = file.replace( "%20", " " )
-                old_file_path = os.path.join( root, file )
-                new_file_path = os.path.join( root, new_name )
-                utils.log( 'Renaming %s to %s' % ( old_file_path, 
new_file_path ) )
-                os.unlink( new_file_path )
-                os.rename( old_file_path, new_file_path )
+                utils.rename(
+                      utils.log
+                    , os.path.join( root, file )
+                    , os.path.join( root, new_name )
+                    )
 
 
 def build_xsl_reports( 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to