[GRASS-SVN] r40353 - grass/trunk/scripts/v.in.lines
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jan 9 08:33:47 EST 2010
Author: hamish
Date: 2010-01-09 08:33:46 -0500 (Sat, 09 Jan 2010)
New Revision: 40353
Modified:
grass/trunk/scripts/v.in.lines/v.in.lines.py
Log:
don't trust the system to close the file for us on error
Modified: grass/trunk/scripts/v.in.lines/v.in.lines.py
===================================================================
--- grass/trunk/scripts/v.in.lines/v.in.lines.py 2010-01-09 13:30:44 UTC (rev 40352)
+++ grass/trunk/scripts/v.in.lines/v.in.lines.py 2010-01-09 13:33:46 UTC (rev 40353)
@@ -135,9 +135,9 @@
continue
numcols = len(line.split())
break
+ inf.close()
if (do3D and numcols < 3) or (not do3D and numcols < 2):
grass.fatal(_("Not enough data columns. (incorrect fs setting?)"))
- inf.close()
grass.run_command('v.in.mapgen', flags = 'f' + do3D,
More information about the grass-commit
mailing list