Skip to content
Permalink
Browse files

PyQgsDelimitedTextProvider fix for python 2.6 (dictionary comprehensi…

…ons not supported)
  • Loading branch information
blazek committed Apr 20, 2013
1 parent 47894ff commit ea493273fc3240cf9fbd9bb9180a4639ac41be66
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/src/python/test_qgsdelimitedtextprovider.py
@@ -92,7 +92,7 @@ def layerData( layer ):
first = False
for field in f.fields():
fields.append(str(field.name()))
fielddata = { name: unicode(f[name].toString()) for name in fields }
fielddata = dict ( (name, unicode(f[name].toString()) ) for name in fields )
g = f.geometry()
if g:
fielddata[geomkey] = str(g.exportToWkt());

0 comments on commit ea49327

Please sign in to comment.
You can’t perform that action at this time.