summaryrefslogtreecommitdiffstats
path: root/Lib/xml
diff options
context:
space:
mode:
authorLars Gustäbel <lars@gustaebel.de>2000-10-24 15:53:12 (GMT)
committerLars Gustäbel <lars@gustaebel.de>2000-10-24 15:53:12 (GMT)
commit4ced5e7675ac8664be82c7dc0e213201871a0983 (patch)
tree984418dccb0b10b0ad8d99dfcb2130ce7bafa904 /Lib/xml
parentcfd3bd838c61640a49671227fb428472cf54c6c4 (diff)
downloadcpython-4ced5e7675ac8664be82c7dc0e213201871a0983.zip
cpython-4ced5e7675ac8664be82c7dc0e213201871a0983.tar.gz
cpython-4ced5e7675ac8664be82c7dc0e213201871a0983.tar.bz2
Fix bug in prepare_input_source (patched by Paul P., sourceforge.net down
now, so can't find number).
Diffstat (limited to 'Lib/xml')
-rw-r--r--Lib/xml/sax/saxutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xml/sax/saxutils.py b/Lib/xml/sax/saxutils.py
index 5d784bd..83c779f 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()