Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60731 - sandbox/numeric_bindings/libs/numeric/bindings/tools
From: thomas.klimpel_at_[hidden]
Date: 2010-03-20 07:14:08


Author: klimpel
Date: 2010-03-20 07:14:07 EDT (Sat, 20 Mar 2010)
New Revision: 60731
URL: http://svn.boost.org/trac/boost/changeset/60731

Log:
fix generator scripts to produce correct line endings on windows
Text files modified:
   sandbox/numeric_bindings/libs/numeric/bindings/tools/bindings.py | 6 +++---
   sandbox/numeric_bindings/libs/numeric/bindings/tools/blas_generator.py | 6 +++---
   sandbox/numeric_bindings/libs/numeric/bindings/tools/documentation.py | 2 +-
   sandbox/numeric_bindings/libs/numeric/bindings/tools/lapack_generator.py | 6 +++---
   4 files changed, 10 insertions(+), 10 deletions(-)

Modified: sandbox/numeric_bindings/libs/numeric/bindings/tools/bindings.py
==============================================================================
--- sandbox/numeric_bindings/libs/numeric/bindings/tools/bindings.py (original)
+++ sandbox/numeric_bindings/libs/numeric/bindings/tools/bindings.py 2010-03-20 07:14:07 EDT (Sat, 20 Mar 2010)
@@ -155,7 +155,7 @@
   result = result.replace( "$LIBRARY_INT_TYPE", "fortran_int_t" )
   #//result = result.replace( "$PARSERMODE", template_map[ "PARSERMODE" ] )
 
- open( dest_file, 'wb' ).write( result )
+ open( dest_file, 'w' ).write( result )
 
 
 
@@ -217,7 +217,7 @@
   result = result.replace( "$CONTENT", content )
   #result = result.replace( "$PARSERMODE", template_map[ "PARSERMODE" ] )
 
- open( dest_file, 'wb' ).write( result )
+ open( dest_file, 'w' ).write( result )
 
 
 
@@ -259,7 +259,7 @@
     result = result.replace( "$CONTENT", content )
     result = result.replace( "$LEVEL", level.upper() )
 
- open( dest_file, 'wb' ).write( result )
+ open( dest_file, 'w' ).write( result )
 
 
 #

Modified: sandbox/numeric_bindings/libs/numeric/bindings/tools/blas_generator.py
==============================================================================
--- sandbox/numeric_bindings/libs/numeric/bindings/tools/blas_generator.py (original)
+++ sandbox/numeric_bindings/libs/numeric/bindings/tools/blas_generator.py 2010-03-20 07:14:07 EDT (Sat, 20 Mar 2010)
@@ -446,7 +446,7 @@
     #result = result.replace( '$groupname', group_name.lower() )
     #result = result.replace( '$DESCRIPTION', info_map[ group[g][0] ][ 'description' ] )
 
- open( os.path.join( base_dir, filename ), 'wb' ).write( result )
+ open( os.path.join( base_dir, filename ), 'w' ).write( result )
 
 
 #
@@ -462,7 +462,7 @@
     result = result.replace( '$levelname', level_name.lower() )
     result = result.replace( '$library', 'blas' )
 
- open( os.path.join( base_dir, filename ), 'wb' ).write( result )
+ open( os.path.join( base_dir, filename ), 'w' ).write( result )
 
 def write_cmakefile( level_properties, template_map, base_dir ):
   
@@ -477,7 +477,7 @@
   filename = 'CMakeLists.txt'
   result = template_map[ 'CMakeLists.txt' ]
   result = result.replace( '$ENTRIES', entries )
- open( os.path.join( base_dir, filename ), 'wb' ).write( result )
+ open( os.path.join( base_dir, filename ), 'w' ).write( result )
 
 
 

Modified: sandbox/numeric_bindings/libs/numeric/bindings/tools/documentation.py
==============================================================================
--- sandbox/numeric_bindings/libs/numeric/bindings/tools/documentation.py (original)
+++ sandbox/numeric_bindings/libs/numeric/bindings/tools/documentation.py 2010-03-20 07:14:07 EDT (Sat, 20 Mar 2010)
@@ -292,7 +292,7 @@
         result = result.replace( '$GROUPNAME', group_name )
         result = result.replace( '$groupname', group_name.lower() )
         print "Writing " + base_dir + "/" + filename
- open( os.path.join( base_dir, filename ), 'wb' ).write( result )
+ open( os.path.join( base_dir, filename ), 'w' ).write( result )
 
 
 

Modified: sandbox/numeric_bindings/libs/numeric/bindings/tools/lapack_generator.py
==============================================================================
--- sandbox/numeric_bindings/libs/numeric/bindings/tools/lapack_generator.py (original)
+++ sandbox/numeric_bindings/libs/numeric/bindings/tools/lapack_generator.py 2010-03-20 07:14:07 EDT (Sat, 20 Mar 2010)
@@ -630,7 +630,7 @@
     #result = result.replace( '$groupname', group_name.lower() )
     #result = result.replace( '$DESCRIPTION', info_map[ group[g][0] ][ 'description' ] )
 
- open( os.path.join( base_dir, filename ), 'wb' ).write( result )
+ open( os.path.join( base_dir, filename ), 'w' ).write( result )
 
 #
 # Write the (many) driver routine test cases to cpp files.
@@ -645,7 +645,7 @@
     result = result.replace( '$levelname', level_name.lower() )
     result = result.replace( '$library', 'lapack' )
 
- open( os.path.join( base_dir, filename ), 'wb' ).write( result )
+ open( os.path.join( base_dir, filename ), 'w' ).write( result )
 
 def write_cmakefile( level_properties, template_map, base_dir ):
   
@@ -661,7 +661,7 @@
   filename = 'CMakeLists.txt'
   result = template_map[ 'CMakeLists.txt' ]
   result = result.replace( '$ENTRIES', entries )
- open( os.path.join( base_dir, filename ), 'wb' ).write( result )
+ open( os.path.join( base_dir, filename ), 'w' ).write( result )
 
 
 def read_templates( template_file ):


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