Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ed315a commit 910b282Copy full SHA for 910b282
1 file changed
Lib/xml/sax/saxutils.py
@@ -283,7 +283,7 @@ def prepare_input_source(source, base = ""):
283
284
if source.getByteStream() is None:
285
sysid = source.getSystemId()
286
- basehead = os.path.split(os.path.normpath(base))[0]
+ basehead = os.path.dirname(os.path.normpath(base))
287
sysidfilename = os.path.join(basehead, sysid)
288
if os.path.isfile(sysidfilename):
289
source.setSystemId(sysidfilename)
0 commit comments