diff options
| author | Joern Hees <dev@joernhees.de> | 2014-11-28 23:51:02 +0100 |
|---|---|---|
| committer | Gunnar Aastrand Grimnes <gromgull@gmail.com> | 2017-01-30 17:43:04 +0100 |
| commit | 5c2c4deec50ee7224f2caf23bddabff97d2ac293 (patch) | |
| tree | e47cf0c4de329ba1d8329051ed1d64cb266f7b27 | |
| parent | 6348976a9fe08fe2930341b7c6f130b6db056494 (diff) | |
| download | rdflib-5c2c4deec50ee7224f2caf23bddabff97d2ac293.tar.gz | |
six: util.py: headers, StringIO
| -rw-r--r-- | rdflib/util.py | 7 | ||||
| -rw-r--r-- | setup.py | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/rdflib/util.py b/rdflib/util.py index 5617908a..515c5907 100644 --- a/rdflib/util.py +++ b/rdflib/util.py @@ -28,6 +28,9 @@ Statement and component type checkers * check_pattern """ +from __future__ import absolute_import +from __future__ import division +from __future__ import print_function from calendar import timegm from time import altzone @@ -38,7 +41,6 @@ from time import time from time import timezone from os.path import splitext -from StringIO import StringIO from rdflib.exceptions import ContextTypeError from rdflib.exceptions import ObjectTypeError @@ -51,7 +53,8 @@ from rdflib.namespace import NamespaceManager from rdflib.term import BNode from rdflib.term import Literal from rdflib.term import URIRef -from rdflib.py3compat import sign +from .py3compat import sign +from .py3compat import StringIO __all__ = [ 'list2set', 'first', 'uniq', 'more_than', 'to_term', 'from_n3', @@ -151,7 +151,7 @@ def setup_python3(): # join(tmp_src, 'rdflib', 'tools', 'rdf2dot.py'), # join(tmp_src, 'rdflib', 'tools', 'rdfpipe.py'), # join(tmp_src, 'rdflib', 'tools', 'rdfs2dot.py'), - # join(tmp_src, 'rdflib', 'util.py'), + join(tmp_src, 'rdflib', 'util.py'), join(tmp_src, 'rdflib', 'void.py'), # join(tmp_src, 'run_tests.py'), join(tmp_src, 'test', '__init__.py'), |
