[GRASS-SVN] r47271 - grass/branches/develbranch_6/lib/python

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jul 27 10:59:48 EDT 2011


Author: mmetz
Date: 2011-07-27 07:59:47 -0700 (Wed, 27 Jul 2011)
New Revision: 47271

Modified:
   grass/branches/develbranch_6/lib/python/db.py
Log:
open output file first

Modified: grass/branches/develbranch_6/lib/python/db.py
===================================================================
--- grass/branches/develbranch_6/lib/python/db.py	2011-07-27 14:59:17 UTC (rev 47270)
+++ grass/branches/develbranch_6/lib/python/db.py	2011-07-27 14:59:47 UTC (rev 47271)
@@ -109,6 +109,7 @@
     if ret != 0:
         fatal(_("Fetching data from table <%s> failed") % table)
         
+    ofile = open(fname)
     result = ofile.readlines()
     ofile.close()
     try_remove(fname)



More information about the grass-commit mailing list