Browse Source

fix parsing GDAL/OGR formats which contains a colon in a description (#1226)

Martin Landa 4 years ago
parent
commit
0623bffd27
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gui/wxpython/core/utils.py

+ 1 - 1
gui/wxpython/core/utils.py

@@ -671,7 +671,7 @@ def _parseFormats(output, writableOnly=False):
         patt = re.compile('\(rw\+?\)$', re.IGNORECASE)
 
     for line in output.splitlines():
-        key, name = map(lambda x: x.strip(), line.strip().rsplit(':', -1))
+        key, name = map(lambda x: x.strip(), line.strip().split(':', 1))
 
         if writableOnly and not patt.search(key):
             continue