Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion escape_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def sparql_escape_int(obj):

def sparql_escape_float(obj):
"""Converts the given float to a SPARQL-safe RDF object string with the right RDF-datatype. """
if not isinstance(obj, int):
if not isinstance(obj, float):
warn("You are escaping something that isn't a float with \
the 'sparql_escape_float'-method. Implicit casting will occurr.")
obj = str(float(obj))
Expand Down