diff --git a/python/plugins/processing/tests/AlgorithmsTestBase.py b/python/plugins/processing/tests/AlgorithmsTestBase.py index 318a5b2187d..55a6ba9c156 100644 --- a/python/plugins/processing/tests/AlgorithmsTestBase.py +++ b/python/plugins/processing/tests/AlgorithmsTestBase.py @@ -95,9 +95,9 @@ class AlgorithmsTest(): """ Loads an array of parameters """ - if type(params) == list: + if isinstance(params, list): return [self.load_param(p) for p in params] - elif type(params) == dict: + elif isinstance(params, dict): return {key: self.load_param(p) for key, p in params.iteritems()} else: return params diff --git a/src/app/nodetool/qgsselectedfeature.h b/src/app/nodetool/qgsselectedfeature.h index e2e4616a96d..6d226149bbb 100644 --- a/src/app/nodetool/qgsselectedfeature.h +++ b/src/app/nodetool/qgsselectedfeature.h @@ -92,7 +92,7 @@ class QgsSelectedFeature: public QObject * Inverts selection of a set of vertices at once. * @param vertexIndices list of vertex indices to invert whether or not they are selected */ - void invertVertexSelection(QVector vertexIndices ); + void invertVertexSelection( QVector vertexIndices ); /** * Tells if vertex is selected