there's no DefaultHandler

Syver Enstad syver-en+usenet at online.no
Tue Jul 16 14:58:34 EDT 2002


"a64bs4$1oo$1 at newsreader.mailgate.org" <eugene1977 at hotmail.com> writes:

> hi. i'm trying to run my first python program
> i'm using python 2.2
> 
> [eugene at eugene python]$ python firstxml.py
> Traceback (most recent call last):
>   File "firstxml.py", line 6, in ?
>     class FindIssue(xml.sax.DefaultHandler):
> AttributeError: 'module' object has no attribute 'DefaultHandler'
> 

I think that the tutorial is outdated, use xml.sax.ContentHandler instead

-- 

Vennlig hilsen 

Syver Enstad



More information about the Python-list mailing list