From ee1236f0671cdf62bf55add59eb9be9b3fc600a6 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Tue, 2 May 2017 19:16:54 +1000 Subject: [PATCH] [processing] Remove unused options argument from (create/get)VectorWriter --- python/plugins/processing/core/outputs.py | 4 ++-- python/plugins/processing/tools/vector.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/python/plugins/processing/core/outputs.py b/python/plugins/processing/core/outputs.py index 8f7fe0ee045..dbfdaa775cc 100644 --- a/python/plugins/processing/core/outputs.py +++ b/python/plugins/processing/core/outputs.py @@ -360,7 +360,7 @@ class OutputVector(Output): self.compatible = getTempFilenameInTempFolder(self.name + '.' + ext) return self.compatible - def getVectorWriter(self, fields, geomType, crs, context, options=None): + def getVectorWriter(self, fields, geomType, crs, context): """Returns a suitable writer to which features can be added as a result of the algorithm. Use this to transparently handle output values instead of creating your own method. @@ -384,7 +384,7 @@ class OutputVector(Output): settings = QgsSettings() self.encoding = settings.value('/Processing/encoding', 'System', str) - w, w_dest, w_layer = createVectorWriter(self.value, self.encoding, fields, geomType, crs, context, options) + w, w_dest, w_layer = createVectorWriter(self.value, self.encoding, fields, geomType, crs, context) self.layer = w_layer self.value = w_dest return w diff --git a/python/plugins/processing/tools/vector.py b/python/plugins/processing/tools/vector.py index f5561343367..342123178d3 100644 --- a/python/plugins/processing/tools/vector.py +++ b/python/plugins/processing/tools/vector.py @@ -456,7 +456,7 @@ NOGEOMETRY_EXTENSIONS = [ ] -def createVectorWriter(destination, encoding, fields, geometryType, crs, context, options=None): +def createVectorWriter(destination, encoding, fields, geometryType, crs, context): layer = None sink = None