diff options
author | Gunnar Aastrand Grimnes <gromgull@gmail.com> | 2016-11-19 06:53:51 +0100 |
---|---|---|
committer | Gunnar Aastrand Grimnes <gromgull@gmail.com> | 2017-01-30 17:43:04 +0100 |
commit | 1746c32bed985fd0adb5e6deab638c24ba313a78 (patch) | |
tree | 7bd8de48776ab44e0df008ea8e11167104bfa8fa /rdflib/tools/graphisomorphism.py | |
parent | b93cddb3517ec6a3654cd255b2beb10331a1a0c7 (diff) | |
download | rdflib-1746c32bed985fd0adb5e6deab638c24ba313a78.tar.gz |
trivial py3 conversion of tools
Diffstat (limited to 'rdflib/tools/graphisomorphism.py')
-rw-r--r-- | rdflib/tools/graphisomorphism.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rdflib/tools/graphisomorphism.py b/rdflib/tools/graphisomorphism.py index 09518110..9ecab86b 100644 --- a/rdflib/tools/graphisomorphism.py +++ b/rdflib/tools/graphisomorphism.py @@ -3,7 +3,9 @@ A commandline tool for testing if RDF graphs are isomorpic, i.e. equal if BNode labels are ignored. """ -from rdflib.graph import Graph +from __future__ import absolute_import + +from rdflib import Graph from rdflib import BNode from itertools import combinations @@ -39,7 +41,7 @@ class IsomorphicTestableGraph(Graph): yield tuple(self.vhashtriple(t, term, done)) def vhashtriple(self, triple, term, done): - for p in xrange(3): + for p in range(3): if not isinstance(triple[p], BNode): yield triple[p] elif done or (triple[p] == term): |