[Python-modules-commits] [python-pyld] 225/276: Only add slash if normalize didn't already do so.

Wolfgang Borgert debacle at moszumanska.debian.org
Wed Oct 8 23:48:13 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 4ac95fa7028f299887437dbd0a2c43d9058caa54
Author: Dave Longley <dlongley at digitalbazaar.com>
Date:   Fri Oct 4 14:59:49 2013 -0400

    Only add slash if normalize didn't already do so.
    
    - Addresses #25.
---
 lib/pyld/jsonld.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/pyld/jsonld.py b/lib/pyld/jsonld.py
index 93f845e..68a193c 100644
--- a/lib/pyld/jsonld.py
+++ b/lib/pyld/jsonld.py
@@ -395,7 +395,7 @@ def prepend_base(base, iri):
 
     # normalize path
     path = posixpath.normpath(path)
-    if add_slash:
+    if not path.endswith('/') and add_slash:
         path += '/'
 
     # do not include '.' path for fragments

-- 
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