Преглед изворни кода

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 година
родитељ
комит
2097bb9a8f
1 измењених фајлова са 5 додато и 2 уклоњено
  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()
         
         global _ignoreBlackList
-        _ignoreBlackList = False if self.parent else True
-        
+        if self.parent:
+                _ignoreBlackList = False
+        else:
+                _ignoreBlackList = True
+
     def GetCmd(self):
         """!Get validated command"""
         return self.cmd