[GRASS-SVN] r45274 -
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Feb 1 11:00:07 EST 2011
Author: martinl
Date: 2011-02-01 08:00:07 -0800 (Tue, 01 Feb 2011)
New Revision: 45274
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gselect.py
Log:
wxGUI: fix _getExtPattern
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gselect.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gselect.py 2011-02-01 13:01:46 UTC (rev 45273)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gselect.py 2011-02-01 16:00:07 UTC (rev 45274)
@@ -20,7 +20,7 @@
- GdalSelect
- ProjSelect
-(C) 2007-2010 by the GRASS Development Team This program is free
+(C) 2007-2011 by the GRASS Development Team This program is free
software under the GNU General Public License (>=v2). Read the file
COPYING that comes with GRASS for details.
@@ -1211,12 +1211,8 @@
def _getExtPattern(self, ext):
"""!Get pattern for case-insensitive mask"""
- pattern = ''
- for c in ext:
- pattern += '[' + c + c.upper() + ']'
+ return '*.%s;*.%s' % (ext.lower(), ext.upper())
- return pattern
-
def OnSettingsLoad(self, event):
"""!Load named settings"""
name = event.GetString()
More information about the grass-commit
mailing list