[GRASS-SVN] r39137 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Sep 12 02:45:53 EDT 2009


Author: martinl
Date: 2009-09-12 02:45:52 -0400 (Sat, 12 Sep 2009)
New Revision: 39137

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py
Log:
replace only 'sh/py' extension


Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py	2009-09-12 06:17:35 UTC (rev 39136)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py	2009-09-12 06:45:52 UTC (rev 39137)
@@ -715,7 +715,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