[GRASS-SVN] r61925 - grass/branches/releasebranch_7_0/scripts/v.in.lines

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Sep 13 15:54:48 PDT 2014


Author: annakrat
Date: 2014-09-13 15:54:48 -0700 (Sat, 13 Sep 2014)
New Revision: 61925

Modified:
   grass/branches/releasebranch_7_0/scripts/v.in.lines/v.in.lines.py
Log:
v.in.lines: remove unnecessary code for separator

Modified: grass/branches/releasebranch_7_0/scripts/v.in.lines/v.in.lines.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/v.in.lines/v.in.lines.py	2014-09-13 22:48:32 UTC (rev 61924)
+++ grass/branches/releasebranch_7_0/scripts/v.in.lines/v.in.lines.py	2014-09-13 22:54:48 UTC (rev 61925)
@@ -59,19 +59,6 @@
     tmp = grass.tempfile()
 
 
-    #### parse field separator
-    if fs in ('space', 'tab'):
-        fs = ' '
-    elif fs == 'comma':
-        fs = ','
-    else:
-        if len(fs) > 1:
-            grass.warning(_("Invalid field separator, using '%s'") % fs[0])
-        try:
-            fs = fs[0]
-        except IndexError:
-            grass.fatal(_("Invalid field separator '%s'") % fs)
-
     #### set up input file
     if options['input'] == '-':
         infile = None



More information about the grass-commit mailing list