[Python-modules-commits] [python-pyld] 45/276: Remove unnecessary @type checks.
Wolfgang Borgert
debacle at moszumanska.debian.org
Wed Oct 8 23:47:52 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 22cb9ce1d9dfb3a269539c804fbc1a837d1602ee
Author: Dave Longley <dlongley at digitalbazaar.com>
Date: Sat Dec 17 21:01:43 2011 -0500
Remove unnecessary @type checks.
---
lib/pyld/jsonld.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/pyld/jsonld.py b/lib/pyld/jsonld.py
index e1c334f..94cba34 100644
--- a/lib/pyld/jsonld.py
+++ b/lib/pyld/jsonld.py
@@ -1619,8 +1619,8 @@ def _subframe(
# iterate over keys in value
for key, v in value.items():
- # skip keywords and type
- if key.find('@') != 0 and key != '@type':
+ # skip keywords
+ if key.find('@') != 0:
# get the subframe if available
if key in frame:
f = frame[key]
@@ -1645,8 +1645,8 @@ def _subframe(
# iterate over frame keys to add any missing values
for key, f in frame.items():
- # skip keywords, type query, and non-None keys in value
- if (key.find('@') != 0 and key != '@type' and
+ # skip keywords and non-None keys in value
+ if (key.find('@') != 0 and
(key not in value or value[key] is None)):
# add empty array to value
if isinstance(f, list):
--
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