Skip to content

Commit

Permalink
Conversions from str.format() to f-strings
Browse files Browse the repository at this point in the history
  • Loading branch information
sadielbartholomew committed Sep 2, 2021
1 parent 37e3555 commit aa3524b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions cf/data/data.py
Expand Up @@ -8812,9 +8812,8 @@ def equals(
other_Units = other.Units
if self_Units != other_Units:
logger.info(
"{}: Different Units ({!r}, {!r})".format(
self.__class__.__name__, self.Units, other.Units
)
f"{self.__class__.__name__}: Different Units "
f"({self.Units!r}, {other.Units!r})"
)
return False

Expand All @@ -8828,8 +8827,8 @@ def equals(
self_dx, other_dx, rtol=float(rtol), atol=float(atol)
):
logger.info(
"{0}: Different array values (atol={1}, "
"rtol={2})".format(self.__class__.__name__, atol, rtol)
f"{self.__class__.__name__}: Different array values "
f"(atol={atol}, rtol={rtol})"
)

return False
Expand Down

0 comments on commit aa3524b

Please sign in to comment.