Skip to content

Commit baea3bc

Browse files
committedMay 15, 2019
format strings
1 parent 9b3b61a commit baea3bc

File tree

1 file changed

+8
-4
lines changed
  • python/plugins/processing/algs/qgis

1 file changed

+8
-4
lines changed
 

‎python/plugins/processing/algs/qgis/Climb.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,17 @@ def processAlgorithm(self, parameters, context, feedback):
147147
for field in source.fields():
148148
if field.name() == self.CLIMBATTRIBUTE:
149149
feedback.pushWarning(self.tr(
150-
str(self.CLIMBATTRIBUTE) +
151-
' attribute found and removed'))
150+
'{attr_name} attribute found and removed'.format(
151+
attr_name=self.CLIMBATTRIBUTE)
152+
)
153+
)
152154
climbindex = fieldnumber
153155
elif field.name() == self.DESCENTATTRIBUTE:
154156
feedback.pushWarning(self.tr(
155-
str(self.DESCENTATTRIBUTE) +
156-
' attribute found and removed'))
157+
'{attr_name} attribute found and removed'.format(
158+
attr_name=self.DESCENTATTRIBUTE)
159+
)
160+
)
157161
descentindex = fieldnumber
158162
else:
159163
thefields.append(field)

0 commit comments

Comments
 (0)
Please sign in to comment.