[XML-SIG] Request For Clarification on packages

Alexandre Fayolle Alexandre.Fayolle@logilab.fr
Thu, 19 Jul 2001 14:11:01 +0200 (CEST)


Thanks for the quick answer.

On 19 Jul 2001, Lars Marius Garshol wrote:

<snip>
> Yep. These are SAX 1.0 and obsolete.
<snip>
> SAX 1.0, yes, and therefore obsolete.
<snip again>

What would you think if using the new warning feature of python2.1 to flag
these modules. Something along the lines of:

try:
    message = 'The Sax 1.0 API is obsolete. Please consider using Sax 2.0
instead'
    import warnings
    warnings.warn(message,
                  DeprecationWarning)

    # Ignore further deprecation warnings about this module
    warnings.filterwarnings("ignore", "", DeprecationWarning, __name__)
except :
    print message




Alexandre Fayolle
-- 
LOGILAB, Paris (France).
http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org
Narval, the first software agent available as free software (GPL).