mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix bug in prepare_input_source (patched by Paul P., sourceforge.net down
now, so can't find number).
This commit is contained in:
parent
cfd3bd838c
commit
4ced5e7675
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ def prepare_input_source(source, base = ""):
|
||||||
source = xmlreader.InputSource()
|
source = xmlreader.InputSource()
|
||||||
source.setByteStream(f)
|
source.setByteStream(f)
|
||||||
if hasattr(f, "name"):
|
if hasattr(f, "name"):
|
||||||
f.setSystemId(f.name)
|
source.setSystemId(f.name)
|
||||||
|
|
||||||
if source.getByteStream() is None:
|
if source.getByteStream() is None:
|
||||||
sysid = source.getSystemId()
|
sysid = source.getSystemId()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue