Skip to content

Commit 9d051cc

Browse files
committed
Fix repr regression
1 parent 5b9543e commit 9d051cc

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

HISTORY.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
History
44
-------
55

6+
2.1.1
7+
++++++++++++++++++
8+
9+
* Fix minor regression in ``repr`` output of ``maxminddb.reader.Metadata``
10+
in 2.1.0.
11+
612
2.1.0 (2021-09-18)
713
++++++++++++++++++
814

maxminddb/reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,5 +331,5 @@ def search_tree_size(self) -> int:
331331
return self.node_count * self.node_byte_size
332332

333333
def __repr__(self):
334-
args = ", ".join(f"{k}={v}" for k, v in self.__dict__.items())
334+
args = ", ".join(f"{k}={v!r}" for k, v in self.__dict__.items())
335335
return f"{self.__module__}.{self.__class__.__name__}({args})"

0 commit comments

Comments
 (0)