diff options
author | Gunnar Aastrand Grimnes <gromgull@gmail.com> | 2016-11-19 07:44:22 +0100 |
---|---|---|
committer | Gunnar Aastrand Grimnes <gromgull@gmail.com> | 2017-01-30 17:43:04 +0100 |
commit | fbf32e11862ca4d07b745a36b4389e900c60c00d (patch) | |
tree | d44c38852bc98fef2a903c56a2ac980ae0385f6f /examples/slice.py | |
parent | f007dace0a39c242ae450611b18463c774696253 (diff) | |
download | rdflib-fbf32e11862ca4d07b745a36b4389e900c60c00d.tar.gz |
converted examples
Diffstat (limited to 'examples/slice.py')
-rw-r--r-- | examples/slice.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/slice.py b/examples/slice.py index 2e4e2d8b..e3d21b40 100644 --- a/examples/slice.py +++ b/examples/slice.py @@ -23,8 +23,7 @@ if __name__=='__main__': for person in graph[: RDF.type : FOAF.Person]: friends = list(graph[person:FOAF.knows * '+'/FOAF.name]) - if friends: - print "%s's circle of friends:"%graph.value(person, FOAF.name) + if friends: + print("%s's circle of friends:"%graph.value(person, FOAF.name)) for name in friends: - print name - + print(name) |