Skip to content

Commit 4514c8b

Browse files
committed
Use f-string
1 parent 503518e commit 4514c8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

geoip2/records.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Record(SimpleEquality, metaclass=ABCMeta):
1919
"""All records are subclasses of the abstract class ``Record``."""
2020

2121
def __repr__(self) -> str:
22-
args = ", ".join("%s=%r" % x for x in self.__dict__.items())
22+
args = ", ".join(f"{k}={v!r}" for k, v in self.__dict__.items())
2323
return f"{self.__module__}.{self.__class__.__name__}({args})"
2424

2525

0 commit comments

Comments
 (0)