view MoinMoin/wikixml/__init__.py @ 4133:251827af7ddc

Fixed: cannot check for File.Error in same line like checking import of File
author Florian Krupicka <florian.krupicka@googlemail.com>
date Tue, 27 May 2008 18:13:17 +0200
parents bb2e053067fb
children
line wrap: on
line source
# -*- coding: iso-8859-1 -*-
"""
    MoinMoin - Package Initialization

    Subpackage containing XML support code.

    @copyright: 2001-2002 Juergen Hermann <jh@web.de>
    @license: GNU GPL, see COPYING for details.
"""

try:
    from xml.sax import saxutils
    ok = hasattr(saxutils, 'quoteattr') # check for correct patch level
except ImportError:
    ok = 0