[Python-modules-commits] [python-pyld] 62/276: Modified compact() to work with a list of contexts.

Wolfgang Borgert debacle at moszumanska.debian.org
Wed Oct 8 23:47:54 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 7d087a18a4a6e51f8e07ccec9889dc538f9a9665
Author: Françoise Conil <fcodvpt at gmail.com>
Date:   Thu Mar 22 17:14:12 2012 +0100

    Modified compact() to work with a list of contexts.
---
 lib/pyld/jsonld.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/pyld/jsonld.py b/lib/pyld/jsonld.py
index 00322c8..dd3bb06 100644
--- a/lib/pyld/jsonld.py
+++ b/lib/pyld/jsonld.py
@@ -1886,9 +1886,11 @@ def compact(ctx, input):
         # setup output context
         ctxOut = {}
 
+        usedCtx = {}
+        usedCtx = mergeContexts(usedCtx, ctx)
         # compact
         output = Processor().compact(
-            copy.copy(ctx), None, input, ctxOut)
+            usedCtx, None, input, ctxOut)
 
         # add context if used
         rval = output

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