[GRASS-SVN] r49939 - grass/branches/releasebranch_6_4/gui/scripts

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 28 08:39:27 EST 2011


Author: martinl
Date: 2011-12-28 05:39:26 -0800 (Wed, 28 Dec 2011)
New Revision: 49939

Modified:
   grass/branches/releasebranch_6_4/gui/scripts/g.extension.py
Log:
g.extension.py: minor fix for -a

Modified: grass/branches/releasebranch_6_4/gui/scripts/g.extension.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/scripts/g.extension.py	2011-12-27 18:57:03 UTC (rev 49938)
+++ grass/branches/releasebranch_6_4/gui/scripts/g.extension.py	2011-12-28 13:39:26 UTC (rev 49939)
@@ -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,7 @@
         elist = get_installed_extensions()
         if elist:
             grass.message(_("List of installed extensions:"))
-            print os.linesep.join(elist)
+            sys.stdout.write('\n'.join(elist))
         else:
             grass.info(_("No extension installed"))
         return 0



More information about the grass-commit mailing list