We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 01a4f43 + 5647007 commit 17db5bcCopy full SHA for 17db5bc
escape_helpers.py
@@ -53,7 +53,7 @@ def sparql_escape_int(obj):
53
54
def sparql_escape_float(obj):
55
"""Converts the given float to a SPARQL-safe RDF object string with the right RDF-datatype. """
56
- if not isinstance(obj, int):
+ if not isinstance(obj, float):
57
warn("You are escaping something that isn't a float with \
58
the 'sparql_escape_float'-method. Implicit casting will occurr.")
59
obj = str(float(obj))
0 commit comments