[Python-modules-commits] [python-pyld] 147/276: Ensure expand context is cloned.
Wolfgang Borgert
debacle at moszumanska.debian.org
Wed Oct 8 23:48:03 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 2a6466f0ca3c7f4d1cf077af2ca34cbe602fbadf
Author: Dave Longley <dlongley at digitalbazaar.com>
Date: Tue Jul 16 15:21:13 2013 -0400
Ensure expand context is cloned.
---
lib/pyld/jsonld.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/pyld/jsonld.py b/lib/pyld/jsonld.py
index 47c970c..536fd5c 100644
--- a/lib/pyld/jsonld.py
+++ b/lib/pyld/jsonld.py
@@ -498,9 +498,9 @@ class JsonLdProcessor:
'remoteContext': {'@context': remote_doc['contextUrl']}
}
if 'expandContext' in options:
- expand_context = options['expandContext']
+ expand_context = copy.deepcopy(options['expandContext'])
if _is_object(expand_context) and '@context' in expand_context:
- input_['expandContext'] = copy.deepcopy(expand_context)
+ input_['expandContext'] = expand_context
else:
input_['expandContext'] = {'@context': expand_context}
--
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