mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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.setByteStream(f)
|
||||
if hasattr(f, "name"):
|
||||
f.setSystemId(f.name)
|
||||
source.setSystemId(f.name)
|
||||
|
||||
if source.getByteStream() is None:
|
||||
sysid = source.getSystemId()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue