[Python-modules-commits] [python-pyld] 201/276: Ensure cached active context is cloned.

Wolfgang Borgert debacle at moszumanska.debian.org
Wed Oct 8 23:48:11 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 dba4b39ec0b7972a344ca8bb0d22a91f6cdadf0d
Author: Dave Longley <dlongley at digitalbazaar.com>
Date:   Thu Sep 19 16:34:12 2013 -0400

    Ensure cached active context is cloned.
---
 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 3d9761c..1cccd42 100644
--- a/lib/pyld/jsonld.py
+++ b/lib/pyld/jsonld.py
@@ -4523,7 +4523,7 @@ class ActiveContextCache:
         key1 = json.dumps(active_ctx)
         key2 = json.dumps(local_ctx)
         self.order.append({'activeCtx': key1, 'localCtx': key2})
-        self.cache.setdefault(key1, {})[key2] = result
+        self.cache.setdefault(key1, {})[key2] = json.loads(json.dumps(result))
 
 
 class VerifiedHTTPSConnection(HTTPSConnection):

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