From: Lars Gustäbel Date: Tue, 24 Oct 2000 15:53:12 +0000 (+0000) Subject: Fix bug in prepare_input_source (patched by Paul P., sourceforge.net down X-Git-Tag: v2.1a1~830 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ced5e7675ac8664be82c7dc0e213201871a0983;p=thirdparty%2FPython%2Fcpython.git Fix bug in prepare_input_source (patched by Paul P., sourceforge.net down now, so can't find number). --- diff --git a/Lib/xml/sax/saxutils.py b/Lib/xml/sax/saxutils.py index 5d784bd5a8c9..83c779fc957d 100644 --- a/Lib/xml/sax/saxutils.py +++ b/Lib/xml/sax/saxutils.py @@ -218,7 +218,7 @@ def prepare_input_source(source, base = ""): source = xmlreader.InputSource() source.setByteStream(f) if hasattr(f, "name"): - f.setSystemId(f.name) + source.setSystemId(f.name) if source.getByteStream() is None: sysid = source.getSystemId()