Skip to content

Commit

Permalink
format strings
Browse files Browse the repository at this point in the history
  • Loading branch information
ghtmtt committed May 15, 2019
1 parent 9b3b61a commit baea3bc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions python/plugins/processing/algs/qgis/Climb.py
Expand Up @@ -147,13 +147,17 @@ def processAlgorithm(self, parameters, context, feedback):
for field in source.fields():
if field.name() == self.CLIMBATTRIBUTE:
feedback.pushWarning(self.tr(
str(self.CLIMBATTRIBUTE) +
' attribute found and removed'))
'{attr_name} attribute found and removed'.format(
attr_name=self.CLIMBATTRIBUTE)
)
)
climbindex = fieldnumber
elif field.name() == self.DESCENTATTRIBUTE:
feedback.pushWarning(self.tr(
str(self.DESCENTATTRIBUTE) +
' attribute found and removed'))
'{attr_name} attribute found and removed'.format(
attr_name=self.DESCENTATTRIBUTE)
)
)
descentindex = fieldnumber
else:
thefields.append(field)
Expand Down

0 comments on commit baea3bc

Please sign in to comment.