Skip to content

Commit

Permalink
Use fixed-width text for all code in warning message
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo van Kemenade <[email protected]>
  • Loading branch information
carterbox and hugovk authored Dec 15, 2021
1 parent 138b092 commit 1f19fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/humanize/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def naturaldelta(
"""
if when:
warnings.warn(
"The `when` parameter of naturaldelta() is deprecated and will be "
"The `when` parameter of `naturaldelta()` is deprecated and will be "
"removed in humanize 4.0. If you need to construct a timedelta, "
"do it inline as the first argument.",
DeprecationWarning,
Expand Down

0 comments on commit 1f19fea

Please sign in to comment.