[Python-modules-commits] [python-pyld] 36/276: Fixed @embed=false bug.

Wolfgang Borgert debacle at moszumanska.debian.org
Wed Oct 8 23:47:51 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 2532404d62a9db21adb0d25ae179e8442d818549
Author: Dave Longley <dlongley at digitalbazaar.com>
Date:   Thu Oct 20 20:31:12 2011 -0400

    Fixed @embed=false bug.
---
 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 196b485..df7455a 100644
--- a/lib/pyld/jsonld.py
+++ b/lib/pyld/jsonld.py
@@ -1540,8 +1540,8 @@ def _subframe(
     # 2. There is no existing embed OR it is an autoembed, AND
     #    autoembed mode is off.
     embedOn = (
-        (('@embed' in frame and frame['@embed'] == True) or
-        options['defaults']['embedOn']) and
+        (('@embed' in frame and frame['@embed']) or
+        ('@embed' not in frame and options['defaults']['embedOn'])) and
         (embed == None or (embed['autoembed'] and not autoembed)))
 
     if not embedOn:

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