[GRASS-SVN] r45961 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Apr 13 15:48:26 EDT 2011
Author: martinl
Date: 2011-04-13 12:48:26 -0700 (Wed, 13 Apr 2011)
New Revision: 45961
Modified:
grass/trunk/gui/wxpython/gui_modules/prompt.py
Log:
wxGUI: fix for python 2.4
(merge r45959 from relbr64)
Modified: grass/trunk/gui/wxpython/gui_modules/prompt.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/prompt.py 2011-04-13 19:46:46 UTC (rev 45960)
+++ grass/trunk/gui/wxpython/gui_modules/prompt.py 2011-04-13 19:48:26 UTC (rev 45961)
@@ -862,7 +862,9 @@
textLeft = self.GetTextLeft()
parts = list()
- ignoredDelimiter = ignoredDelimiter if ignoredDelimiter is not None else ''
+ if ignoredDelimiter is None:
+ ignoredDelimiter = ''
+
for char in set(' .,-=') - set(ignoredDelimiter):
delimiter = '' if not withDelimiter else char
parts.append(delimiter + textLeft.rpartition(char)[2])
More information about the grass-commit
mailing list