You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by jd...@apache.org on 2023/05/01 17:29:41 UTC
[qpid-python] branch main updated: QPID-8642: fix installation on windows by eliminating buggy path manipulation (#23)
This is an automated email from the ASF dual-hosted git repository.
jdanek pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-python.git
The following commit(s) were added to refs/heads/main by this push:
new 868842e QPID-8642: fix installation on windows by eliminating buggy path manipulation (#23)
868842e is described below
commit 868842ebd6b453d6551cbe1390773802f0201335
Author: Jiri Daněk <jd...@redhat.com>
AuthorDate: Mon May 1 19:29:36 2023 +0200
QPID-8642: fix installation on windows by eliminating buggy path manipulation (#23)
---
mllib/__init__.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mllib/__init__.py b/mllib/__init__.py
index d978a0c..6876104 100644
--- a/mllib/__init__.py
+++ b/mllib/__init__.py
@@ -71,13 +71,13 @@ class Resolver:
return InputSource(systemId)
def xml_parse(filename, path=()):
- source = "file://%s" % os.path.abspath(filename)
h = parsers.XMLParser()
p = xml.sax.make_parser()
p.setContentHandler(h)
p.setErrorHandler(ErrorHandler())
p.setEntityResolver(Resolver(path))
- p.parse(source)
+ with open(filename, mode='rt') as source:
+ p.parse(source)
return h.parser.tree
def sexp(node):
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org