Skip to content

Commit 3cc9b5d

Browse files
committed
Indentation
1 parent f5d61ab commit 3cc9b5d

File tree

7 files changed

+12
-15
lines changed

7 files changed

+12
-15
lines changed

python/plugins/db_manager/db_plugins/postgis/plugins/qgis_topoview/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def run(item, action, mainwindow):
109109
uri = db.uri()
110110

111111
# Force use of estimated metadata (topologies can be big)
112-
uri.setUseEstimatedMetadata( True )
112+
uri.setUseEstimatedMetadata(True)
113113

114114
# FACES
115115
group = legend.addGroup(u'Faces', False, supergroup)

python/plugins/processing/algs/qgis/Delaunay.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def processAlgorithm(self, progress):
8787
if geom.isMultipart():
8888
points = geom.asMultiPoint()
8989
else:
90-
points = [ geom.asPoint() ]
90+
points = [geom.asPoint()]
9191
for n, point in enumerate(points):
9292
x = point.x()
9393
y = point.y()

python/plugins/processing/algs/qgis/ZonalStatisticsQgis.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def defineCharacteristics(self):
6868
self.tr('Majority'): QgsZonalStatistics.Count,
6969
self.tr('Variety'): QgsZonalStatistics.Count,
7070
self.tr('All'): QgsZonalStatistics.All
71-
}
71+
}
7272

7373
self.name, self.i18n_name = self.trAlgorithm('Zonal Statistics (QGIS)')
7474
self.group, self.i18n_group = self.trAlgorithm('Raster tools')
@@ -84,9 +84,9 @@ def defineCharacteristics(self):
8484
self.addParameter(ParameterString(self.COLUMN_PREFIX,
8585
self.tr('Output column prefix'), '_'))
8686
self.addParameter(ParameterSelection(self.STATISTICS,
87-
self.tr('Statistics to calculate'),
88-
list(self.STATS.keys()),
89-
multiple=True))
87+
self.tr('Statistics to calculate'),
88+
list(self.STATS.keys()),
89+
multiple=True))
9090
self.addOutput(OutputVector(self.OUTPUT_LAYER,
9191
self.tr('Zonal statistics'),
9292
True,
@@ -104,7 +104,7 @@ def processAlgorithm(self, progress):
104104
keys = list(self.STATS.keys())
105105
selectedStats = 0
106106
for i in st:
107-
selectedStats |= self.STATS[keys[i]]
107+
selectedStats |= self.STATS[keys[i]]
108108

109109
zs = QgsZonalStatistics(vectorLayer,
110110
rasterPath,

python/plugins/processing/algs/qgis/ui/FieldsCalculatorDialog.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def initContext(self):
100100
exp_context.lastScope().setVariable("row_number", 1)
101101
exp_context.setHighlightedVariables(["row_number"])
102102
self.builder.setExpressionContext(exp_context)
103-
103+
104104
def updateLayer(self):
105105
self.layer = dataobjects.getObject(self.cmbInputLayer.currentText())
106106
self.builder.setLayer(self.layer)

python/plugins/processing/algs/qgis/voronoi.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def dump(self):
392392
print("Site #%d (%g, %g)" % (self.sitenum, self.x, self.y))
393393

394394
def __eq__(self, other):
395-
return (self.x==other.x) and (self.y==other.y)
395+
return (self.x == other.x) and (self.y == other.y)
396396

397397
def __lt__(self, other):
398398
if self.y < other.y:
@@ -507,7 +507,7 @@ def dump(self):
507507
print("ystar: ", self.ystar)
508508

509509
def __eq__(self, other):
510-
return (self.vertex.x==other.vertex.x) and (self.ystar==other.ystar)
510+
return (self.vertex.x == other.vertex.x) and (self.ystar == other.ystar)
511511

512512
def __lt__(self, other):
513513
if self.ystar < other.ystar:

python/plugins/processing/gui/ScriptEditorDialog.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ def __init__(self, algType, alg):
138138

139139
self.editor.setLexerType(self.algType)
140140

141-
142141
def showSnippets(self, evt):
143142
popupmenu = QMenu()
144143
for name, snippet in list(self.snippets.items()):
@@ -222,8 +221,8 @@ def saveScript(self, saveAs):
222221
filterName = self.tr('Processing R script (*.rsx)')
223222

224223
self.filename = str(QFileDialog.getSaveFileName(self,
225-
self.tr('Save script'), scriptDir,
226-
filterName))
224+
self.tr('Save script'), scriptDir,
225+
filterName))
227226

228227
if self.filename:
229228
if self.algType == self.SCRIPT_PYTHON and \

python/plugins/processing/gui/wrappers.py

-2
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,6 @@ def _populate(self, widget):
598598
items.append((getExtendedLayerName(layer), layer))
599599
self.widget.update(items)
600600

601-
602-
603601
def refresh(self):
604602
self._populate(self.widget)
605603

0 commit comments

Comments
 (0)