357b526
diff https://svn.osgeo.org/grass/grass/tags/release_20110412_grass_6_4_1 https://svn.osgeo.org/grass/grass/branches/releasebranch_6_4 -r 45958:45964 > ~/dev/src/elgis-testing/rpmbuild/elgis/grass/SOURCES/grass-ternaryOp-python24.patch
357b526
Index: gui/wxpython/gui_modules/prompt.py
357b526
===================================================================
357b526
--- gui/wxpython/gui_modules/prompt.py	(revision 45958)
357b526
+++ gui/wxpython/gui_modules/prompt.py	(revision 45964)
357b526
@@ -850,8 +850,7 @@
357b526
             toComplete['entity'] = 'command'
357b526
             toComplete['cmd'] = cmd
357b526
             return toComplete
357b526
-                
357b526
-            
357b526
+    
357b526
     def GetWordLeft(self, withDelimiter = False, ignoredDelimiter = None):
357b526
         """!Get word left from current cursor position. The beginning
357b526
         of the word is given by space or chars: .,-= 
357b526
@@ -862,13 +861,17 @@
357b526
         textLeft = self.GetTextLeft()
357b526
         
357b526
         parts = list()
357b526
-        ignoredDelimiter = ignoredDelimiter if ignoredDelimiter is not None else ''
357b526
+        if ignoredDelimiter is None:
357b526
+            ignoredDelimiter = ''
357b526
+        
357b526
         for char in set(' .,-=') - set(ignoredDelimiter):
357b526
-            delimiter = '' if not withDelimiter else char
357b526
+            if not withDelimiter:
357b526
+                delimiter = ''
357b526
+            else:
357b526
+                delimiter = char
357b526
             parts.append(delimiter + textLeft.rpartition(char)[2])
357b526
         return min(parts, key=lambda x: len(x))
357b526
-        
357b526
-        
357b526
+         
357b526
     def ShowList(self):
357b526
         """!Show sorted auto-completion list if it is not empty"""
357b526
         if len(self.autoCompList) > 0: