[GRASS-SVN] r39141 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Sep 12 02:59:20 EDT 2009


Author: martinl
Date: 2009-09-12 02:59:20 -0400 (Sat, 12 Sep 2009)
New Revision: 39141

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
Log:
replace only 'sh/py' extension
       (merge r39137 from relbr64)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py	2009-09-12 06:57:02 UTC (rev 39140)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py	2009-09-12 06:59:20 UTC (rev 39141)
@@ -597,7 +597,7 @@
         self.parent = parent # LayerTree | None
 
         # module name + keywords
-        title = self.task.name.replace('.py', '').replace('.sh', '')
+        title = self.task.name.rstrip('.py').rstrip('.sh')
         try:
             title +=  " [" + ', '.join( self.task.keywords ) + "]"
         except ValueError:



More information about the grass-commit mailing list