Skip to content

Commit 4ced5e7

Browse files
committed
Fix bug in prepare_input_source (patched by Paul P., sourceforge.net down
now, so can't find number).
1 parent cfd3bd8 commit 4ced5e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/xml/sax/saxutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def prepare_input_source(source, base = ""):
218218
source = xmlreader.InputSource()
219219
source.setByteStream(f)
220220
if hasattr(f, "name"):
221-
f.setSystemId(f.name)
221+
source.setSystemId(f.name)
222222

223223
if source.getByteStream() is None:
224224
sysid = source.getSystemId()

0 commit comments

Comments
 (0)