diff options
Diffstat (limited to 'gdatastore/datastore.py')
-rw-r--r-- | gdatastore/datastore.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdatastore/datastore.py b/gdatastore/datastore.py index ae9a657..d74ebc3 100644 --- a/gdatastore/datastore.py +++ b/gdatastore/datastore.py @@ -656,7 +656,12 @@ def to_native(value): return unicode(value) elif isinstance(value, str): return str(value) - return value + elif isinstance(value, int): + return int(value) + elif isinstance(value, float): + return float(value) + else: + raise TypeError('Unknown type: %s' % (type(value), )) def _format_ref(tree_id, version_id): |