Sfoglia il codice sorgente

wxGUI/modeler: fix loop condtion handling for python editor

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58531 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 anni fa
parent
commit
32cf9dcd12
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      gui/wxpython/gmodeler/model.py

+ 1 - 1
gui/wxpython/gmodeler/model.py

@@ -2167,7 +2167,7 @@ if __name__ == "__main__":
                         value = '"' + value + '"'
                     cond = pattern.sub(value, cond)
             if isinstance(item, ModelLoop):
-                condVar, condText = map(lambda x: x.strip(), re.split('\s*in\s*', cond))
+                condVar, condText = map(lambda x: x.strip(), re.split('\s* in \s*', cond))
                 cond = "%sfor %s in " % (' ' * self.indent, condVar)
                 if condText[0] == '`' and condText[-1] == '`':
                     task = GUI(show = None).ParseCommand(cmd = utils.split(condText[1:-1]))