Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/gdatastore/datastore.py
diff options
context:
space:
mode:
Diffstat (limited to 'gdatastore/datastore.py')
-rw-r--r--gdatastore/datastore.py7
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):