Skip to content

Commit

Permalink
misc: Add f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
JDBetteridge committed Dec 20, 2024
1 parent 9630b13 commit 3b6ae7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devito/symbolics/printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def _print_Abs(self, expr):
func = "fabsf" if self.single_prec() else "fabs"
else:
func = "fabs"
return "%s(%s)" % (func, self._print(expr.args[0]))
return f"{func}({self._print(expr.args[0])})"

def _print_Add(self, expr, order=None):
""""
Expand Down

0 comments on commit 3b6ae7e

Please sign in to comment.