[XML-SIG] [ pyxml-Bugs-624420 ] Can't create 2nd Sax2.Reader
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 16 Oct 2002 19:37:02 -0700
Bugs item #624420, was opened at 2002-10-16 19:37
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=106473&aid=624420&group_id=6473
Category: SAX
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Can't create 2nd Sax2.Reader
Initial Comment:
Environment:
Windows XP
Python 2.2.1 (#1, Jun 25 2002,
10:55:46)
[GCC 2.95.3-5 (cygwin special)] on cygwin
Type
"help", "copyright", "credits" or "license" for more
information.
>>> from xml.dom.ext.reader import
Sax2
>>> reader1 = Sax2.Reader()
>>> reader2 =
Sax2.Reader()
Traceback (most recent call last):
File
"<stdin>", line 1, in ?
File "C:\Python22\Lib\site-
packages\_xmlplus\dom\ext\reader\Sax2.py", line 347, in
__init__
self.parser = parser or (validate and
sax2exts.XMLValParserFactory.make_parser()) or
sax2exts.XMLParserFactory.make_parser()
File
"/cygdrive/c/python22/lib/site-
packages/_xmlplus/sax/saxexts.py", line 64, in
make_parser
return self._create_parser(parser_name)
File "/cygdrive/c/python22/lib/site-
packages/_xmlplus/sax/saxexts.py", line 43, in
_create_parser
return drv_module.create_parser()
File
"/cygdrive/c/python22/lib/site-
packages/_xmlplus/sax/saxexts.py", line 74, in
_create_parser
raise
_exceptions.SAXReaderNotAvailable
TypeError: __init__()
takes at least 2 arguments (1 given)
>>>
The first
creation succeeds. The second fails.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=106473&aid=624420&group_id=6473