summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Scott <dan@coffeecode.net>2016-01-17 15:14:32 -0500
committerDan Scott <dan@coffeecode.net>2016-01-17 15:14:32 -0500
commit4b4458505acbea7bfa82b6652d4e6cda19f2750d (patch)
tree6b7ecf4428bad1b75d83c42ae332cb425ab37d27
parent7eae68ba96cd834c62600c1bba7f26f859d6a620 (diff)
downloadrdflib-4b4458505acbea7bfa82b6652d4e6cda19f2750d.tar.gz
Avoid class reference to imported function
We import the urljoin() function directly to support both Py2 and Py3, so the reference to urlparse.urljoin() raises an exception. Don't do that! Fixes 574. Signed-off-by: Dan Scott <dan@coffeecode.net>
-rw-r--r--rdflib/plugins/parsers/pyMicrodata/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rdflib/plugins/parsers/pyMicrodata/utils.py b/rdflib/plugins/parsers/pyMicrodata/utils.py
index ae7cc6a1..92981294 100644
--- a/rdflib/plugins/parsers/pyMicrodata/utils.py
+++ b/rdflib/plugins/parsers/pyMicrodata/utils.py
@@ -294,7 +294,7 @@ class URIOpener :
self.headers = self.data.info()
if URIOpener.CONTENT_LOCATION in self.headers :
- self.location = urlparse.urljoin(self.data.geturl(),self.headers[URIOpener.CONTENT_LOCATION])
+ self.location = urljoin(self.data.geturl(),self.headers[URIOpener.CONTENT_LOCATION])
else :
self.location = name