Serhiy Storchaka added the comment:
This is a duplicate of issue15388. Parser doesn't close an input source's
stream if an exception raised.
--
nosy: +serhiy.storchaka
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - SAX parse (ExpatParser)
Mark Lawrence breamore...@yahoo.co.uk added the comment:
I can't reproduce this on Windows Vista from the command line with 2.7 or py3k.
Can someone confirm that I'm correct?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2840
___
New submission from Craig Holmquist [EMAIL PROTECTED]:
This was observed in Python 2.5.2 on Windows XP. Run this code in IDLE:
import xml.sax
from xml.sax.handler import ContentHandler
class C(ContentHandler):
def startElement(self, name, attrs):
assert False