[GRASS-SVN] r49940 - grass/branches/develbranch_6/gui/scripts

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 28 08:47:24 EST 2011


Author: martinl
Date: 2011-12-28 05:47:24 -0800 (Wed, 28 Dec 2011)
New Revision: 49940

Modified:
   grass/branches/develbranch_6/gui/scripts/g.extension.py
Log:
g.extension.py: minor fix for -a
		(merge r49939 from relbr64)


Modified: grass/branches/develbranch_6/gui/scripts/g.extension.py
===================================================================
--- grass/branches/develbranch_6/gui/scripts/g.extension.py	2011-12-28 13:39:26 UTC (rev 49939)
+++ grass/branches/develbranch_6/gui/scripts/g.extension.py	2011-12-28 13:47:24 UTC (rev 49940)
@@ -167,7 +167,7 @@
     
     ret = list()
     for tnode in tree.findall('task'):
-        ret.append(tnode.get('name'))
+        ret.append(tnode.get('name').strip())
     
     return ret
 
@@ -766,7 +766,8 @@
         elist = get_installed_extensions()
         if elist:
             grass.message(_("List of installed extensions:"))
-            print os.linesep.join(elist)
+            sys.stdout.write('\n'.join(elist))
+            sys.stdout.write('\n')
         else:
             grass.info(_("No extension installed"))
         return 0



More information about the grass-commit mailing list