diff options
| author | Gunnar Aastrand Grimnes <gromgull@gmail.com> | 2017-01-30 21:50:05 +0100 |
|---|---|---|
| committer | Gunnar Aastrand Grimnes <gromgull@gmail.com> | 2017-01-30 21:50:05 +0100 |
| commit | bfcde8482401393ea183242f0ddca5bff73afc2c (patch) | |
| tree | a638c67c850c2ba952cf419f448034a5e8b18196 /examples | |
| parent | ff4616e6e58e83fae518770f0af2e6ca4922ac42 (diff) | |
| download | rdflib-bfcde8482401393ea183242f0ddca5bff73afc2c.tar.gz | |
removed most of the six import from py3compat
now six is used throughout.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/film.py | 2 | ||||
| -rw-r--r-- | examples/graph_digest_benchmark.py | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/examples/film.py b/examples/film.py index b18341e8..0672840a 100644 --- a/examples/film.py +++ b/examples/film.py @@ -32,7 +32,7 @@ except ImportError: from rdflib import BNode, ConjunctiveGraph, URIRef, Literal, Namespace, RDF from rdflib.namespace import FOAF, DC -from rdflib.py3compat import input +from six.moves import input storefn = os.path.expanduser('~/movies.n3') #storefn = '/home/simon/codes/film.dev/movies.n3' diff --git a/examples/graph_digest_benchmark.py b/examples/graph_digest_benchmark.py index 5e940c3d..2e64e1bf 100644 --- a/examples/graph_digest_benchmark.py +++ b/examples/graph_digest_benchmark.py @@ -10,7 +10,8 @@ from __future__ import print_function from rdflib import Namespace, Graph from rdflib.compare import to_isomorphic -from rdflib.py3compat import urlopen, queue +from six.moves.urllib.request import urlopen +from six.moves import queue import sys, csv from io import StringIO @@ -75,7 +76,7 @@ def files_benchmark(ontologies, output_file, threads): print('ERROR', stats['id'], e) stats['error'] = str(e) finished_tasks.put(stats) - except Empty: + except queue.Empty: pass for i in range(int(threads)): print("Starting worker", i) |
