Skip to content
Permalink
Browse files

format strings

  • Loading branch information
ghtmtt committed May 15, 2019
1 parent 9b3b61a commit baea3bcd61990e7fdd964ed63df13f9b958b9e71
Showing with 8 additions and 4 deletions.
  1. +8 −4 python/plugins/processing/algs/qgis/Climb.py
@@ -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)

0 comments on commit baea3bc

Please sign in to comment.
You can’t perform that action at this time.