diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/xml/sax/saxutils.py | 2 |
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() |