home *** CD-ROM | disk | FTP | other *** search
/ Freelog Special Freeware 31 / FreelogHS31.iso / Texte / scribus / scribus-1.3.3.9-win32-install.exe / lib / xml / __init__.py
Text File  |  2004-11-29  |  1KB  |  43 lines

  1. """Core XML support for Python.
  2.  
  3. This package contains three sub-packages:
  4.  
  5. dom -- The W3C Document Object Model.  This supports DOM Level 1 +
  6.        Namespaces.
  7.  
  8. parsers -- Python wrappers for XML parsers (currently only supports Expat).
  9.  
  10. sax -- The Simple API for XML, developed by XML-Dev, led by David
  11.        Megginson and ported to Python by Lars Marius Garshol.  This
  12.        supports the SAX 2 API.
  13. """
  14.  
  15.  
  16. __all__ = ["dom", "parsers", "sax"]
  17.  
  18. # When being checked-out without options, this has the form
  19. # "<dollar>Revision: x.y </dollar>"
  20. # When exported using -kv, it is "x.y".
  21. __version__ = "$Revision: 1.15 $".split()[-2:][0]
  22.  
  23.  
  24. _MINIMUM_XMLPLUS_VERSION = (0, 8, 4)
  25.  
  26.  
  27. try:
  28.     import _xmlplus
  29. except ImportError:
  30.     pass
  31. else:
  32.     try:
  33.         v = _xmlplus.version_info
  34.     except AttributeError:
  35.         # _xmlplus is too old; ignore it
  36.         pass
  37.     else:
  38.         if v >= _MINIMUM_XMLPLUS_VERSION:
  39.             import sys
  40.             sys.modules[__name__] = _xmlplus
  41.         else:
  42.             del v
  43.