After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 340764 - python bindings use deprecated python library
python bindings use deprecated python library
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: python
2.6.x
Other Mac OS
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2006-05-05 17:59 UTC by Daniel Macks
Modified: 2017-06-13 02:10 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Daniel Macks 2006-05-05 17:59:00 UTC
Building the python bindings for python2.4 for libxml2-2.6.24, python/setup.py reports:

/sw/lib/python2.4/xmllib.py:9: DeprecationWarning: The xmllib module is obsolete.  Use xml.sax instead.
  warnings.warn("The xmllib module is obsolete.  Use xml.sax instead.", DeprecationWarning)

I have no idea what's involved in making the transition, or whether it's best to keep using xmllib until a python is released that no longer has it at all (is there a still-viable version of python that does not have xml.sax?)
Comment 1 Daniel Macks 2017-06-13 02:10:36 UTC
I just tried libxml2-2.9.4 against python27 and no longer see this warning. Possibly resolved by NEWS portability item for 2.7.7 "Fix python generator to not use deprecated xmllib (Daniel Veillard)"