[Python-modules-commits] [python-pyld] 128/276: Fix bug with relative paths w/fragments.
Wolfgang Borgert
debacle at moszumanska.debian.org
Wed Oct 8 23:48:01 UTC 2014
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to branch master
in repository python-pyld.
commit bcd4aeef73150540377a3cf74eb760744204cbb9
Author: Dave Longley <dlongley at digitalbazaar.com>
Date: Fri Jun 7 14:03:10 2013 -0400
Fix bug with relative paths w/fragments.
---
lib/pyld/jsonld.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/pyld/jsonld.py b/lib/pyld/jsonld.py
index 8c9c234..18e9222 100644
--- a/lib/pyld/jsonld.py
+++ b/lib/pyld/jsonld.py
@@ -269,6 +269,10 @@ def prepend_base(base, iri):
if add_slash:
path += '/'
+ # do not include '.' path for fragments
+ if path == '.' and rel.fragment != '':
+ path = ''
+
return urlparse.urlunsplit((
base.scheme,
rel.netloc or base.netloc,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-pyld.git
More information about the Python-modules-commits
mailing list