diff options
| author | Dan Scott <dan@coffeecode.net> | 2016-01-17 15:14:32 -0500 |
|---|---|---|
| committer | Dan Scott <dan@coffeecode.net> | 2016-01-17 15:14:32 -0500 |
| commit | 4b4458505acbea7bfa82b6652d4e6cda19f2750d (patch) | |
| tree | 6b7ecf4428bad1b75d83c42ae332cb425ab37d27 | |
| parent | 7eae68ba96cd834c62600c1bba7f26f859d6a620 (diff) | |
| download | rdflib-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.py | 2 |
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 |
