File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,19 @@ static int PyXmlSec_CheckLxmlLibraryVersion(void) {
8484 goto FINALIZE ;
8585 }
8686
87- if (PyLong_AsLong (major ) != PyXmlSec_GetLibXmlVersionMajor () || PyLong_AsLong (minor ) != PyXmlSec_GetLibXmlVersionMinor ()) {
87+ long lxml_major = PyLong_AsLong (major );
88+ long lxml_minor = PyLong_AsLong (minor );
89+ long xmlsec_major = PyXmlSec_GetLibXmlVersionMajor ();
90+ long xmlsec_minor = PyXmlSec_GetLibXmlVersionMinor ();
91+
92+ if (lxml_major != xmlsec_major || lxml_minor != xmlsec_minor ) {
93+ PySys_WriteStderr (
94+ "python-xmlsec: lxml libxml2 version %ld.%ld differs from xmlsec libxml2 version %ld.%ld\n" ,
95+ lxml_major ,
96+ lxml_minor ,
97+ xmlsec_major ,
98+ xmlsec_minor
99+ );
88100 goto FINALIZE ;
89101 }
90102
You can’t perform that action at this time.
0 commit comments