[Python-modules-commits] [python-pyld] 120/276: Remove unused code.

Wolfgang Borgert debacle at moszumanska.debian.org
Wed Oct 8 23:48:00 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 b06beabb085db8a292ee9181f3f6f2f0499f3043
Author: Dave Longley <dlongley at digitalbazaar.com>
Date:   Fri May 10 10:08:29 2013 -0400

    Remove unused code.
---
 lib/pyld/jsonld.py | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/lib/pyld/jsonld.py b/lib/pyld/jsonld.py
index 123c3e9..e4a297d 100644
--- a/lib/pyld/jsonld.py
+++ b/lib/pyld/jsonld.py
@@ -320,11 +320,6 @@ def remove_base(base, iri):
     if not (base.scheme == rel.scheme and base.netloc == rel.netloc):
         return iri
 
-    # trim base path at last directory
-    base_path = base.path
-    # if not base_path.endswith('/'):
-    #    base_path = base_path[0:base_path.rfind('/') + 1]
-
     path = posixpath.normpath(posixpath.relpath(rel.path, base.path))
     if rel.path.endswith('/') and not path.endswith('/'):
         path += '/'

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