[Python-modules-commits] [python-pyld] 69/276: Sort matches by @id.

Wolfgang Borgert debacle at moszumanska.debian.org
Wed Oct 8 23:47:54 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 d0468767a4ad0d1d72f440e2eb29f6e26f7a6805
Author: Dave Longley <dlongley at digitalbazaar.com>
Date:   Fri Apr 27 01:45:05 2012 -0400

    Sort matches by @id.
---
 lib/pyld/jsonld.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/pyld/jsonld.py b/lib/pyld/jsonld.py
index fbe2027..f7bc329 100644
--- a/lib/pyld/jsonld.py
+++ b/lib/pyld/jsonld.py
@@ -1563,7 +1563,7 @@ class JsonLdProcessor:
         explicit_on = self._getFrameFlag(frame, options, 'explicit')
 
         # add matches to output
-        for id, subject in matches.items():
+        for id, subject in sorted(matches.items()):
             # Note: In order to treat each top-level match as a
             # compartmentalized result, create an independent copy of the
             # embedded subjects map when the property is None, which only

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