Skip to content

Commit 6610678

Browse files
committed
Add the Metadata class to the C extension module under the correct name
1 parent 326dec0 commit 6610678

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

HISTORY.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ History
88

99
* The C extension now correctly supports objects that implement the
1010
``os.PathLike`` interface.
11+
* The ``Metadata`` class object is now available from the C extension
12+
module as ``maxminddb.extension.Metadata`` rather than
13+
``maxminddb.extension.extension``.
1114

1215
2.0.3 (2020-10-16)
1316
++++++++++++++++++

extension/maxminddb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ PyMODINIT_FUNC PyInit_extension(void) {
738738
if (PyType_Ready(&Metadata_Type)) {
739739
return NULL;
740740
}
741-
PyModule_AddObject(m, "extension", (PyObject *)&Metadata_Type);
741+
PyModule_AddObject(m, "Metadata", (PyObject *)&Metadata_Type);
742742

743743
PyObject *error_mod = PyImport_ImportModule("maxminddb.errors");
744744
if (error_mod == NULL) {

0 commit comments

Comments
 (0)