[GRASS-SVN] r53186 - grass/trunk/lib/python

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Sep 16 05:18:26 PDT 2012


Author: martinl
Date: 2012-09-16 05:18:26 -0700 (Sun, 16 Sep 2012)
New Revision: 53186

Modified:
   grass/trunk/lib/python/db.py
Log:
pythonlib: fs -> sep


Modified: grass/trunk/lib/python/db.py
===================================================================
--- grass/trunk/lib/python/db.py	2012-09-16 10:56:32 UTC (rev 53185)
+++ grass/trunk/lib/python/db.py	2012-09-16 12:18:26 UTC (rev 53186)
@@ -135,8 +135,8 @@
         fatal(_("Programmer error: '%(sql)s', '%(filename)s', or '%(table)s' must be provided") %
               {'sql': 'sql', 'filename': 'filename', 'table': 'table'} )
     
-    if 'fs' not in args:
-        args['fs'] = '|'
+    if 'sep' not in args:
+        args['sep'] = '|'
     
     ret = run_command('db.select', quiet = True,
                       flags = 'c',
@@ -147,7 +147,7 @@
         fatal(_("Fetching data failed"))
     
     ofile = open(fname)
-    result = map(lambda x: tuple(x.rstrip(os.linesep).split(args['fs'])),
+    result = map(lambda x: tuple(x.rstrip(os.linesep).split(args['sep'])),
                  ofile.readlines())
     ofile.close()
     try_remove(fname)



More information about the grass-commit mailing list