[GRASS-SVN] r55957 - grass/trunk/lib/python/script

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Apr 23 07:58:16 PDT 2013


Author: zarch
Date: 2013-04-23 07:58:16 -0700 (Tue, 23 Apr 2013)
New Revision: 55957

Modified:
   grass/trunk/lib/python/script/core.py
Log:
Fix undefined variable

Modified: grass/trunk/lib/python/script/core.py
===================================================================
--- grass/trunk/lib/python/script/core.py	2013-04-23 14:47:33 UTC (rev 55956)
+++ grass/trunk/lib/python/script/core.py	2013-04-23 14:58:16 UTC (rev 55957)
@@ -918,7 +918,7 @@
     @return directory of mapsets/elements
     """
     if type == 'raster' or type == 'cell':
-        verbose(_('Element type should be "rast" and not "%s"') % element)
+        verbose(_('Element type should be "rast" and not "%s"') % type)
         type = 'rast'
     dashes_re = re.compile("^----+$")
     mapset_re = re.compile("<(.*)>")
@@ -1001,7 +1001,7 @@
     @return list of elements
     """
     if type == 'raster' or type == 'cell':
-        verbose(_('Element type should be "rast" and not "%s"') % element)
+        verbose(_('Element type should be "rast" and not "%s"') % type)
         type = 'rast'
     result = list()
     for line in read_command("g.mlist",
@@ -1049,7 +1049,7 @@
     @return directory of mapsets/elements
     """
     if type == 'raster' or type == 'cell':
-        verbose(_('Element type should be "rast" and not "%s"') % element)
+        verbose(_('Element type should be "rast" and not "%s"') % type)
         type = 'rast'
     result = {}
     if check_search_path:



More information about the grass-commit mailing list