diff options
Diffstat (limited to 'rdflib/plugins/parsers/trix.py')
-rw-r--r-- | rdflib/plugins/parsers/trix.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rdflib/plugins/parsers/trix.py b/rdflib/plugins/parsers/trix.py index 26e0e35b..ffd883fe 100644 --- a/rdflib/plugins/parsers/trix.py +++ b/rdflib/plugins/parsers/trix.py @@ -8,7 +8,7 @@ from rdflib.term import Literal from rdflib.graph import Graph, ConjunctiveGraph from rdflib.exceptions import ParserError from rdflib.parser import Parser -from six import text_type + from xml.sax.saxutils import handler from xml.sax import make_parser @@ -98,7 +98,7 @@ class TriXHandler(handler.ContentHandler): self.datatype = None try: - self.lang = attrs.getValue((text_type(XMLNS), u"lang")) + self.lang = attrs.getValue((str(XMLNS), u"lang")) except: # language not required - ignore pass @@ -115,7 +115,7 @@ class TriXHandler(handler.ContentHandler): self.lang = None self.datatype = None try: - self.lang = attrs.getValue((text_type(XMLNS), u"lang")) + self.lang = attrs.getValue((str(XMLNS), u"lang")) except: # language not required - ignore pass |