Thanks to visit codestin.com Credit goes to github.com
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 e412e7a commit 738293dCopy full SHA for 738293d
1 file changed
Modules/pyexpat.c
@@ -926,6 +926,13 @@ initpyexpat(void)
926
927
PyModule_AddObject(m, "__version__",
928
PyString_FromStringAndSize(rev+11, strlen(rev+11)-2));
929
+#ifdef XML_MAJOR_VERSION
930
+ PyModule_AddStringConstant(m, "EXPAT_VERSION",
931
+ (char *) XML_ExpatVersion());
932
+ PyModule_AddObject(m, "version_info",
933
+ Py_BuildValue("(iii)", XML_MAJOR_VERSION,
934
+ XML_MINOR_VERSION, XML_MICRO_VERSION));
935
+#endif
936
937
/* XXX When Expat supports some way of figuring out how it was
938
compiled, this should check and set native_encoding
0 commit comments