Skip to content

Commit

Permalink
PyQgsDelimitedTextProvider fix for python 2.6 (dictionary comprehensi…
Browse files Browse the repository at this point in the history
…ons not supported)
  • Loading branch information
blazek committed Apr 20, 2013
1 parent 47894ff commit ea49327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsdelimitedtextprovider.py
Expand Up @@ -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());
Expand Down

0 comments on commit ea49327

Please sign in to comment.