Skip to content

Commit

Permalink
use an f-string now that we can
Browse files Browse the repository at this point in the history
  • Loading branch information
Elia Robyn Speer committed Oct 5, 2021
1 parent b4f22cd commit 784564e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions langcodes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,9 +560,8 @@ def to_alpha3(self, variant: str = 'T') -> str:
return LANGUAGE_ALPHA3[language]
else:
raise LookupError(
"{!r} is not a known language code, and has no alpha3 code.".format(
language
)
f"{language!r} is not a known language code, "
"and has no alpha3 code."
)

def broader_tags(self) -> List[str]:
Expand Down

0 comments on commit 784564e

Please sign in to comment.