Skip to content

Commit f3eaf10

Browse files
committed
Use an f-string in a utility method, recommended by fixit
1 parent b0f6661 commit f3eaf10

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

email_validator/exceptions_types.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,7 @@ def __eq__(self, other):
126126
"""This helps producing the README."""
127127
def as_constructor(self):
128128
return "ValidatedEmail(" \
129-
+ ",".join("\n {}={}".format(
130-
key,
131-
repr(getattr(self, key)))
129+
+ ",".join(f"\n {key}={repr(getattr(self, key))}"
132130
for key in ('normalized', 'local_part', 'domain',
133131
'ascii_email', 'ascii_local_part', 'ascii_domain',
134132
'smtputf8', 'mx', 'mx_fallback_type')

0 commit comments

Comments
 (0)