mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
PyQgsDelimitedTextProvider fix for python 2.6 (dictionary comprehensions not supported)
This commit is contained in:
parent
47894ff733
commit
ea493273fc
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user