diff options
author | Joern Hees <dev@joernhees.de> | 2015-02-25 13:30:23 +0100 |
---|---|---|
committer | Joern Hees <dev@joernhees.de> | 2015-02-25 13:30:23 +0100 |
commit | c316789e84e8f2c039348e00e34575f849c410b0 (patch) | |
tree | 199651f4c972b97bf24215fdaad00a5ff5767604 | |
parent | 16b63f7631c43bfeb48e6946c0178322794623c4 (diff) | |
download | rdflib-c316789e84e8f2c039348e00e34575f849c410b0.tar.gz |
minor code cleanup removing if False code
-rw-r--r-- | rdflib/plugins/stores/sparqlstore.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/rdflib/plugins/stores/sparqlstore.py b/rdflib/plugins/stores/sparqlstore.py index 5029ca6a..b3ae46eb 100644 --- a/rdflib/plugins/stores/sparqlstore.py +++ b/rdflib/plugins/stores/sparqlstore.py @@ -132,10 +132,7 @@ def CastToTerm(node): value = node.text if node.text is not None else '' if 'datatype' in node.attrib: dT = URIRef(node.attrib['datatype']) - if False: # not node.xpath('*'): - return Literal('', datatype=dT) - else: - return Literal(value, datatype=dT) + return Literal(value, datatype=dT) elif '{http://www.w3.org/XML/1998/namespace}lang' in node.attrib: return Literal(value, lang=node.attrib[ "{http://www.w3.org/XML/1998/namespace}lang"]) |