subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From phi...@apache.org
Subject svn commit: r1133018 - /subversion/trunk/build/generator/gen_base.py
Date Tue, 07 Jun 2011 14:06:49 GMT
Author: philip
Date: Tue Jun  7 14:06:48 2011
New Revision: 1133018

URL: http://svn.apache.org/viewvc?rev=1133018&view=rev
Log:
* build/generator/gen_base.py
  (write_sqlite_headers): Avoid using 'with' to fix a buildbot.

Modified:
    subversion/trunk/build/generator/gen_base.py

Modified: subversion/trunk/build/generator/gen_base.py
URL: http://svn.apache.org/viewvc/subversion/trunk/build/generator/gen_base.py?rev=1133018&r1=1133017&r2=1133018&view=diff
==============================================================================
--- subversion/trunk/build/generator/gen_base.py (original)
+++ subversion/trunk/build/generator/gen_base.py Tue Jun  7 14:06:48 2011
@@ -217,8 +217,9 @@ class GeneratorBase:
     import transform_sql
     for hdrfile, sqlfile in self.graph.get_deps(DT_SQLHDR):
       new_hdrfile = hdrfile + ".new"
-      with open(new_hdrfile, 'w') as new_file:
-        transform_sql.main(sqlfile[0], new_file)
+      new_file = open(new_hdrfile, 'w')
+      transform_sql.main(sqlfile[0], new_file)
+      new_file.close()
 
       def identical(file1, file2):
         try:



Mime
View raw message