Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 367729 (xml.use_pyxml) - [TRACKER] Preparations to use xml.use_pyxml()
Summary: [TRACKER] Preparations to use xml.use_pyxml()
Status: RESOLVED FIXED
Alias: xml.use_pyxml
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: Tracker
Depends on: 367731 367733 367735 367737 367739 367741 367743 367745 367747 367749 367751 367753 367755 367759 367761 367763 367765 367767 367769 367771 367773 367775 367777
Blocks: 356019
  Show dependency tree
 
Reported: 2011-05-17 16:53 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2018-04-21 07:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-05-17 16:53:30 UTC
Tracker for preparations to use xml.use_pyxml().
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-04-21 06:49:12 UTC
The missing explanation: PyXML used 'xml' namespace, i.e. the same namespace that newer versions of Python used for their built-in xml.  So if something specifically requires PyXML (and not the built-in XML), it needs to use hack to 'hide' the standard module.  To cite one of the dependent bugs:

'''
If this package actually needs PyXML, then modify all modules/scripts of this package, which import xml module. The following code should be added before first import of anything from xml module:

import xml
if hasattr(xml, "use_pyxml"):
    xml.use_pyxml()

This code works with previous versions of Python, so no changes in dependencies are needed.
'''
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-04-21 07:54:12 UTC
Last blocker fixed.