Browse Source

pythonlib: fs -> sep

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@53186 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 years ago
parent
commit
65259ff9d2
1 changed files with 3 additions and 3 deletions
  1. 3 3
      lib/python/db.py

+ 3 - 3
lib/python/db.py

@@ -135,8 +135,8 @@ def db_select(sql = None, filename = None, table = None, **args):
         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 @@ def db_select(sql = None, filename = None, table = None, **args):
         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)