is it inconsistency in expatreader?

Roman Suzi rnd at onego.ru
Tue Sep 4 13:59:30 EDT 2001


I am trying to run this (from Python 2.1.1):

$ python2.1 expatreader.py
Traceback (most recent call last):
  File "expatreader.py", line 238, in ?
    p.setContentHandler(xml.sax.XMLGenerator())
AttributeError: 'xml.sax' module has no attribute 'XMLGenerator'

Is it Python 2.1.1 inconsistency of some sort or do I missing something?

(XMLGenerator is in xml.sax.saxutils instead)

Sincerely yours, Roman Suzi
-- 
_/ Russia _/ Karelia _/ Petrozavodsk _/ rnd at onego.ru _/
_/ Tuesday, September 04, 2001 _/ Powered by Linux RedHat 6.2 _/
_/ "Useless Invention: Fine glass-crystal castanets." _/





More information about the Python-list mailing list