[Python-modules-commits] [python-pyld] 29/276: Bugfix for omitOn referenced before defined (line 1637). Start by assigning a value to omitOn per JSON-LD spec section 6.10.2

Wolfgang Borgert debacle at moszumanska.debian.org
Wed Oct 8 23:47:50 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 b8a21b06426d859685cf676b3bfc6ad4b958c13a
Author: Josh Mandel <joshua.mandel at childrens.harvard.edu>
Date:   Mon Sep 12 14:15:52 2011 -0700

    Bugfix for omitOn referenced before defined (line 1637).  Start by assigning a value to omitOn per JSON-LD spec section 6.10.2
---
 lib/pyld/jsonld.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/pyld/jsonld.py b/lib/pyld/jsonld.py
index c4a2512..485464c 100644
--- a/lib/pyld/jsonld.py
+++ b/lib/pyld/jsonld.py
@@ -1555,6 +1555,10 @@ def _frame(subjects, input, frame, embeds, options):
         frames = [frame]
         limit = 1
 
+    omitOn = False
+    if hasattr(options, 'default') and hasattr(options['defualts'], 'omitDefaultOn'):
+        omitOn = options['defualts']['omitDefaultOn']
+
     # iterate over frames adding input matches to list
     values = []
     for i in range(0, len(frames)):

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