[GRASS-SVN] r37279 - grass/trunk/scripts/m.proj
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue May 19 08:50:24 EDT 2009
Author: hamish
Date: 2009-05-19 08:50:24 -0400 (Tue, 19 May 2009)
New Revision: 37279
Modified:
grass/trunk/scripts/m.proj/m.proj.py
Log:
allow fs=,
Modified: grass/trunk/scripts/m.proj/m.proj.py
===================================================================
--- grass/trunk/scripts/m.proj/m.proj.py 2009-05-19 12:42:58 UTC (rev 37278)
+++ grass/trunk/scripts/m.proj/m.proj.py 2009-05-19 12:50:24 UTC (rev 37279)
@@ -122,10 +122,13 @@
#### parse field separator
# FIXME: input_x,y needs to split on multiple whitespace between them
- try:
- ifs, ofs = fs.split(',')
- except ValueError:
- ifs = ofs = fs
+ if fs == ',':
+ ifs = ofs = ','
+ else:
+ try:
+ ifs, ofs = fs.split(',')
+ except ValueError:
+ ifs = ofs = fs
ifs = ifs.lower()
ofs = ofs.lower()
More information about the grass-commit
mailing list