[Python-modules-commits] [python-pyld] 200/276: Fix docs.

Wolfgang Borgert debacle at moszumanska.debian.org
Wed Oct 8 23:48:11 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 8160b0e437e0ff69a0133b2d47910d66aa353b64
Author: Dave Longley <dlongley at digitalbazaar.com>
Date:   Mon Sep 16 20:48:43 2013 -0400

    Fix docs.
---
 README.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.rst b/README.rst
index 5682533..d70d332 100644
--- a/README.rst
+++ b/README.rst
@@ -41,8 +41,8 @@ Quick Examples
 
 .. code-block::
 
-    import json
     from pyld import jsonld
+    import json
 
     doc = {
         "http://schema.org/name": "Manu Sporny",
@@ -75,7 +75,7 @@ Quick Examples
     # see: http://json-ld.org/spec/latest/json-ld/#expanded-document-form
     expanded = jsonld.expand(compacted)
 
-    print(json.dumps(compacted, indent=2))
+    print(json.dumps(expanded, indent=2))
     # Output:
     # {
     #   "http://schema.org/image": [{"@id": "http://manu.sporny.org/images/manu.png"}],

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