Browse Source

make code Python 2.4 compliant

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@46454 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 14 years ago
parent
commit
2097bb9a8f
1 changed files with 5 additions and 2 deletions
  1. 5 2
      gui/wxpython/gui_modules/menuform.py

+ 5 - 2
gui/wxpython/gui_modules/menuform.py

@@ -2207,8 +2207,11 @@ class GUI:
         self.cmd = list()
         self.cmd = list()
         
         
         global _ignoreBlackList
         global _ignoreBlackList
-        _ignoreBlackList = False if self.parent else True
-        
+        if self.parent:
+                _ignoreBlackList = False
+        else:
+                _ignoreBlackList = True
+
     def GetCmd(self):
     def GetCmd(self):
         """!Get validated command"""
         """!Get validated command"""
         return self.cmd
         return self.cmd