Skip to content

Commit

Permalink
fix parsing GDAL/OGR formats which contains a colon in a description (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
landam committed Jan 3, 2021
1 parent 27cbd6f commit 4b62e92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/wxpython/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,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
Expand Down

0 comments on commit 4b62e92

Please sign in to comment.