Skip to content

Commit

Permalink
removing base64 decoding from XSDToPython
Browse files Browse the repository at this point in the history
  • Loading branch information
nateprewitt committed Dec 3, 2016
1 parent 0f5a9de commit 5ff7517
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rdflib/term.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
import warnings
import math

import base64
import xml.dom.minidom

from urlparse import urlparse, urljoin, urldefrag
Expand Down Expand Up @@ -1495,8 +1494,7 @@ def _castPythonToLiteral(obj):
URIRef(_XSD_PFX + 'unsignedByte'): int,
URIRef(_XSD_PFX + 'float'): float,
URIRef(_XSD_PFX + 'double'): float,
URIRef(
_XSD_PFX + 'base64Binary'): lambda s: base64.b64decode(py3compat.b(s)),
URIRef(_XSD_PFX + 'base64Binary'): None,
URIRef(_XSD_PFX + 'anyURI'): None,
_RDF_XMLLITERAL: _parseXML,
_RDF_HTMLLITERAL: _parseHTML
Expand Down

0 comments on commit 5ff7517

Please sign in to comment.