[Python-modules-commits] [python-pyld] 05/07: Fixes for running under Python 3
Wolfgang Borgert
debacle at moszumanska.debian.org
Tue Oct 13 22:56:33 UTC 2015
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to tag 0.6.8
in repository python-pyld.
commit b3f05fa471dd63052ad69cc8b0ad543cac4ebd2a
Author: Kal Ahmed <kal at brightstardb.com>
Date: Wed May 13 12:12:52 2015 +0100
Fixes for running under Python 3
---
lib/pyld/jsonld.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/lib/pyld/jsonld.py b/lib/pyld/jsonld.py
old mode 100644
new mode 100755
index 52a857e..a0a5a49
--- a/lib/pyld/jsonld.py
+++ b/lib/pyld/jsonld.py
@@ -1302,7 +1302,7 @@ class JsonLdProcessor(object):
def filter_value(e):
return not JsonLdProcessor.compare_values(e, value)
values = JsonLdProcessor.get_values(subject, property)
- values = filter(filter_value, values)
+ values = list(filter(filter_value, values))
if len(values) == 0:
JsonLdProcessor.remove_property(subject, property)
@@ -3398,7 +3398,10 @@ class JsonLdProcessor(object):
def remove_dependents(id_):
# get embed keys as a separate array to enable deleting keys
# in map
- ids = embeds.keys()
+ try:
+ ids = list(embeds.iterkeys())
+ except AttributeError:
+ ids = list(embeds.keys())
for next in ids:
if (next in embeds and
_is_object(embeds[next]['parent']) and
--
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