We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 503518e commit 4514c8bCopy full SHA for 4514c8b
geoip2/records.py
@@ -19,7 +19,7 @@ class Record(SimpleEquality, metaclass=ABCMeta):
19
"""All records are subclasses of the abstract class ``Record``."""
20
21
def __repr__(self) -> str:
22
- args = ", ".join("%s=%r" % x for x in self.__dict__.items())
+ args = ", ".join(f"{k}={v!r}" for k, v in self.__dict__.items())
23
return f"{self.__module__}.{self.__class__.__name__}({args})"
24
25
0 commit comments